[FFmpeg-cvslog] rawdec: force timestamps from codec to be used

Michael Niedermayer git at videolan.org
Tue May 22 16:06:49 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 21 14:33:09 2012 +0200| [1dd71e1cd5eac942666f95f406f7aed81c5ab208] | committer: Michael Niedermayer

rawdec: force timestamps from codec to be used

This fixes playback timing with at least m4v files

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1dd71e1cd5eac942666f95f406f7aed81c5ab208
---

 libavformat/rawdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 91b6660..1746e7b 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -157,7 +157,7 @@ int ff_raw_video_read_header(AVFormatContext *s)
 
     st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
     st->codec->codec_id = s->iformat->raw_codec_id;
-    st->need_parsing = AVSTREAM_PARSE_FULL;
+    st->need_parsing = AVSTREAM_PARSE_FULL_RAW;
 
     if ((ret = av_parse_video_rate(&framerate, s1->framerate)) < 0) {
         av_log(s, AV_LOG_ERROR, "Could not parse framerate: %s.\n", s1->framerate);



More information about the ffmpeg-cvslog mailing list