Commit 1fec720a authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/cinedec: ask for sample when biBitCount isnt supported

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 47b03415
...@@ -125,8 +125,10 @@ static int cine_read_header(AVFormatContext *avctx) ...@@ -125,8 +125,10 @@ static int cine_read_header(AVFormatContext *avctx)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
biBitCount = avio_rl16(pb); 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; return AVERROR_INVALIDDATA;
}
switch (avio_rl32(pb)) { switch (avio_rl32(pb)) {
case BMP_RGB: case BMP_RGB:
......
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