From: nu774 Date: Tue, 22 Oct 2013 10:31:14 +0000 (+0900) Subject: fixed bogus sgpd written on --gapless-mode=1 and 2 X-Git-Tag: v0.3.3~1 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=91ef87b610a03a3f4c4729ed9fb8ae3d70c58719;p=fdkaac.git fixed bogus sgpd written on --gapless-mode=1 and 2 --- diff --git a/src/m4af.c b/src/m4af.c index 931d5fe..261ce71 100644 --- a/src/m4af.c +++ b/src/m4af.c @@ -866,15 +866,14 @@ void m4af_write_sgpd_box(m4af_ctx_t *ctx, uint32_t track_idx) { m4af_track_t *track = &ctx->track[track_idx]; m4af_write(ctx, - "\0\0\0\032" /* size */ + "\0\0\0\026" /* size: 22 */ "sgpd" /* type */ - "\001" /* version */ + "\0" /* version */ "\0\0\0" /* flags */ "roll" /* grouping_type */ - "\0\0\0\002" /* default_length: 2 */ "\0\0\0\001" /* entry_count: 1 */ "\377\377" /* payload_data: -1 */ - , 26); + , 22); } static