You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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@gmx.de>
This commit is contained in:
@@ -1638,7 +1638,6 @@ static int matroska_read_header(AVFormatContext *s)
|
|||||||
st->codec->height * track->video.display_width,
|
st->codec->height * track->video.display_width,
|
||||||
st->codec-> width * track->video.display_height,
|
st->codec-> width * track->video.display_height,
|
||||||
255);
|
255);
|
||||||
if (st->codec->codec_id != CODEC_ID_H264)
|
|
||||||
st->need_parsing = AVSTREAM_PARSE_HEADERS;
|
st->need_parsing = AVSTREAM_PARSE_HEADERS;
|
||||||
if (track->default_duration)
|
if (track->default_duration)
|
||||||
st->avg_frame_rate = av_d2q(1000000000.0/track->default_duration, INT_MAX);
|
st->avg_frame_rate = av_d2q(1000000000.0/track->default_duration, INT_MAX);
|
||||||
|
Reference in New Issue
Block a user