set avgBitrate field to zero for 14496-1 compliance

This commit is contained in:
nu774 2013-10-18 22:11:09 +09:00
parent 2f960ef8fd
commit fe2d3aa3e7
1 changed files with 4 additions and 0 deletions

View File

@ -771,7 +771,11 @@ void m4af_write_esds_box(m4af_ctx_t *ctx, uint32_t track_idx)
, 2);
m4af_write24(ctx, track->bufferSizeDB);
m4af_write32(ctx, track->maxBitrate);
#if 0
m4af_write32(ctx, track->avgBitrate);
#else
m4af_write32(ctx, 0);
#endif
/* DecoderSpecificInfo */
m4af_write_descriptor(ctx, 5, track->decSpecificInfoSize);
m4af_write(ctx, track->decSpecificInfo, track->decSpecificInfoSize);