diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-05-21 00:43:38 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-05-21 00:43:38 +0200 |
commit | 8f6b919d99687416deaedb2df6b8b5f49645a291 (patch) | |
tree | dd68e455355a5341eb5c75dd9c7f64fa8b176a87 /libavformat/matroskaenc.c | |
parent | 642355712b970c4b17a207cc0ea42ea6adaba39f (diff) | |
download | ffmpeg-8f6b919d99687416deaedb2df6b8b5f49645a291.tar.gz |
lavf/mkv: Only skip prores header if the packet is large enough.
Fixes a possible endless loop.
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 7cbba0b002..c4c58f4d09 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -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; |