You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/ffv1enc: Ensure that bits per raw sample is valid
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -793,6 +793,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
|||||||
av_log(avctx, AV_LOG_ERROR, "format not supported\n");
|
av_log(avctx, AV_LOG_ERROR, "format not supported\n");
|
||||||
return AVERROR(ENOSYS);
|
return AVERROR(ENOSYS);
|
||||||
}
|
}
|
||||||
|
av_assert0(s->bits_per_raw_sample >= 8);
|
||||||
|
|
||||||
if (s->transparency) {
|
if (s->transparency) {
|
||||||
av_log(avctx, AV_LOG_WARNING, "Storing alpha plane, this will require a recent FFV1 decoder to playback!\n");
|
av_log(avctx, AV_LOG_WARNING, "Storing alpha plane, this will require a recent FFV1 decoder to playback!\n");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user