Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
81e40c26e1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/ffv1enc.c

+ 2
- 0
libavcodec/ffv1enc.c View File

@@ -793,6 +793,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "format not supported\n");
return AVERROR(ENOSYS);
}
av_assert0(s->bits_per_raw_sample >= 8);

if (s->transparency) {
av_log(avctx, AV_LOG_WARNING, "Storing alpha plane, this will require a recent FFV1 decoder to playback!\n");
}


Loading…
Cancel
Save