1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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

Fixes a possible endless loop.
This commit is contained in:
Carl Eugen Hoyos
2015-05-21 00:43:38 +02:00
parent 642355712b
commit 8f6b919d99

View File

@@ -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;