mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
mpevideo_enc: disallow multiple slices for h261 and flv
They do not work and produce corrupted output. CC: libav-stable@libav.org
This commit is contained in:
parent
ca489564ae
commit
d80f0a4ad6
@ -496,6 +496,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