[FFmpeg-devel] [PATCH]Fix vssh decoding

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Jan 7 22:02:07 CET 2014


Hi!

Attached patch fixes ticket #3261 visually, timestamps are still wrong.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 17eb245..1f9fa14 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -688,6 +688,8 @@ static int avi_read_header(AVFormatContext *s)
                     /* This is needed to get the pict type which is necessary
                      * for generating correct pts. */
                     st->need_parsing = AVSTREAM_PARSE_HEADERS;
+                    if (st->codec->codec_tag == MKTAG('V', 'S', 'S', 'H'))
+                        st->need_parsing = AVSTREAM_PARSE_FULL;
 
                     if (st->codec->codec_tag == 0 && st->codec->height > 0 &&
                         st->codec->extradata_size < 1U << 30) {


More information about the ffmpeg-devel mailing list