mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat/cinedec: ask for sample when biBitCount isnt supported
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
47b03415f3
commit
1fec720afa
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user