summaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2007-04-13 07:50:04 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-04-13 07:50:04 +0000
commita74008a4c3b23707e610db0b2f042c2c8347b08f (patch)
treea558adf1257e89c36b0d64864dd9ff19490e9c46 /libavformat/avidec.c
parent946d3b12a14ba661a2cdeaa1e85af224310b5753 (diff)
downloadffmpeg-a74008a4c3b23707e610db0b2f042c2c8347b08f.tar.gz
timestamps generation improvement when parsing avi
patch by Joakim \ elupus chez ecce dot se / original thread: date: 03/19/2007 01:47 AM subject: [Ffmpeg-devel] [RFC] Improvement for the odd timestamp generation when parser is in use. Originally committed as revision 8725 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 02078bc77b..d434c57181 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -452,8 +452,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
if (size%2) /* 2-aligned (fix for Stargate SG-1 - 3x18 - Shades of Grey.avi) */
url_fskip(pb, 1);
/* Force parsing as several audio frames can be in
- * one packet. */
- st->need_parsing = 1;
+ * one packet and timestamps refer to packet start*/
+ st->need_parsing = AVSTREAM_PARSE_TIMESTAMPS;
/* ADTS header is in extradata, AAC without header must be stored as exact frames, parser not needed and it will fail */
if (st->codec->codec_id == CODEC_ID_AAC && st->codec->extradata_size)
st->need_parsing = 0;