Commit 8f6b919d authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/mkv: Only skip prores header if the packet is large enough.

Fixes a possible endless loop.
parent 64235571
......@@ -1575,7 +1575,7 @@ static void mkv_write_block(AVFormatContext *s, AVIOContext *pb,
} else
data = pkt->data;
if (codec->codec_id == AV_CODEC_ID_PRORES) {
if (codec->codec_id == AV_CODEC_ID_PRORES && size >= 8) {
/* Matroska specification requires to remove the first QuickTime atom
*/
size -= 8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment