Revision a74008a4 libavformat/avidec.c

View differences:

libavformat/avidec.c
452 452
                    if (size%2) /* 2-aligned (fix for Stargate SG-1 - 3x18 - Shades of Grey.avi) */
453 453
                        url_fskip(pb, 1);
454 454
                    /* Force parsing as several audio frames can be in
455
                     * one packet. */
456
                    st->need_parsing = 1;
455
                     * one packet and timestamps refer to packet start*/
456
                    st->need_parsing = AVSTREAM_PARSE_TIMESTAMPS;
457 457
                    /* ADTS header is in extradata, AAC without header must be stored as exact frames, parser not needed and it will fail */
458 458
                    if (st->codec->codec_id == CODEC_ID_AAC && st->codec->extradata_size)
459 459
                        st->need_parsing = 0;

Also available in: Unified diff