Revision ef19c7eb

View differences:

libavformat/movenc.c
282 282
    /* TODO: Currently hard-coded to 16-bit, there doesn't seem
283 283
                 to be a good way to get number of bits of audio */
284 284
    put_be16(pb, 0x10); /* Reserved */
285
    put_be16(pb, 0); /* compression ID (= 0) */
285

  
286
    if(track->enc->codec_id == CODEC_ID_AAC ||
287
       track->enc->codec_id == CODEC_ID_MP3)
288
    {
289
        put_be16(pb, 0xfffe); /* compression ID (vbr)*/
290
    }
291
    else
292
    {
293
        put_be16(pb, 0); /* compression ID (= 0) */
294
    }
286 295
    put_be16(pb, 0); /* packet size (= 0) */
287 296
    put_be16(pb, track->timescale); /* Time scale */
288 297
    put_be16(pb, 0); /* Reserved */

Also available in: Unified diff