X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fm4af.c;h=bdcae5f68912dc81abf7a440dbd02ab6a65e968e;hb=a7e00a42195bd01fad75e5800fcbadeb1a5d3efd;hp=931d5fe1e7bccc4259c4a4cfce05d095f3c10748;hpb=2f6fc566ccaab90a089758155f5dfdd7bfb6d519;p=fdkaac.git diff --git a/src/m4af.c b/src/m4af.c index 931d5fe..bdcae5f 100644 --- a/src/m4af.c +++ b/src/m4af.c @@ -864,17 +864,15 @@ void m4af_write_sbgp_box(m4af_ctx_t *ctx, uint32_t track_idx) static 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 @@ -1051,7 +1049,6 @@ void m4af_write_elst_box(m4af_ctx_t *ctx, uint32_t track_idx) static void m4af_write_edts_box(m4af_ctx_t *ctx, uint32_t track_idx) { - m4af_track_t *track = &ctx->track[track_idx]; int64_t pos = m4af_tell(ctx); m4af_write(ctx, "\0\0\0\0edts", 8); m4af_write_elst_box(ctx, track_idx);