[FFmpeg-cvslog] matroskadec: remove H.264 special-case that disabled header parsing.

Reimar Döffinger git at videolan.org
Mon Feb 20 20:43:14 CET 2012


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sun Feb 19 15:30:34 2012 +0100| [016c7bb762edded8d64f986e40b6f4cd739dd597] | committer: Reimar Döffinger

matroskadec: remove H.264 special-case that disabled header parsing.

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 at gmx.de>

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

 libavformat/matroskadec.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 784e26b..636a407 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -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);



More information about the ffmpeg-cvslog mailing list