diff --git a/libavformat/cinedec.c b/libavformat/cinedec.c index 5e16032999..372088495e 100644 --- a/libavformat/cinedec.c +++ b/libavformat/cinedec.c @@ -125,8 +125,10 @@ static int cine_read_header(AVFormatContext *avctx) return AVERROR_INVALIDDATA; biBitCount = avio_rl16(pb); - if (biBitCount != 8 && biBitCount != 16 && biBitCount != 24 && biBitCount != 48) + if (biBitCount != 8 && biBitCount != 16 && biBitCount != 24 && biBitCount != 48) { + avpriv_request_sample(avctx, "unsupported biBitCount %i", biBitCount); return AVERROR_INVALIDDATA; + } switch (avio_rl32(pb)) { case BMP_RGB: