OSDN Git Service

matroskadec: remove H.264 special-case that disabled header parsing.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 19 Feb 2012 14:30:34 +0000 (15:30 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 20 Feb 2012 19:42:55 +0000 (20:42 +0100)
The parser was fixed so this workaround should no longer
be necessary.
This allows using stream-copy to fix files with keyframes
incorrectly marked.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavformat/matroskadec.c

index 784e26b..636a407 100644 (file)
@@ -1638,7 +1638,6 @@ static int matroska_read_header(AVFormatContext *s)
                       st->codec->height * track->video.display_width,
                       st->codec-> width * track->video.display_height,
                       255);
-            if (st->codec->codec_id != CODEC_ID_H264)
             st->need_parsing = AVSTREAM_PARSE_HEADERS;
             if (track->default_duration)
                 st->avg_frame_rate = av_d2q(1000000000.0/track->default_duration, INT_MAX);