[FFmpeg-devel] [PATCH]Only expect prores packet offset in mkv if the specified codec id was set
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Apr 1 09:02:38 CEST 2014
Hi!
Attached patch will be necessary to support decoding broken prores-in-mkv.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 4390b6b..91249a2 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2543,7 +2543,7 @@ static int matroska_parse_frame
pkt_data = wv_data;
}
- if (st->codec->codec_id == AV_CODEC_ID_PRORES)
+ if (!strcmp(track->codec_id, "V_PRORES"))
offset = 8;
pkt = av_mallocz(sizeof(AVPacket));
More information about the ffmpeg-devel
mailing list