Commit 81e40c26 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffv1enc: Ensure that bits per raw sample is valid

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9c3c7b45
...@@ -793,6 +793,8 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -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");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment