mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Merge commit 'd80f0a4ad634b3949b91b85f21fd608c0cddeef7'
* commit 'd80f0a4ad634b3949b91b85f21fd608c0cddeef7': mpevideo_enc: disallow multiple slices for h261 and flv Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
commit
819a99ef21
@ -650,6 +650,12 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
}
|
||||
}
|
||||
|
||||
if (avctx->slices > 1 &&
|
||||
(avctx->codec_id == AV_CODEC_ID_FLV1 || avctx->codec_id == AV_CODEC_ID_H261)) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Multiple slices are not supported by this codec\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
if (s->avctx->thread_count > 1 &&
|
||||
s->codec_id != AV_CODEC_ID_MPEG4 &&
|
||||
s->codec_id != AV_CODEC_ID_MPEG1VIDEO &&
|
||||
|
Loading…
Reference in New Issue
Block a user