cdxl: remove early check for bpp
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
This commit is contained in:
parent
126daeb550
commit
cf6914e27f
@ -197,10 +197,6 @@ static int cdxl_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
if (c->bpp < 1)
|
if (c->bpp < 1)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
if (c->bpp > 8) {
|
|
||||||
av_log_ask_for_sample(avctx, "unsupported pixel size: %d\n", c->bpp);
|
|
||||||
return AVERROR_PATCHWELCOME;
|
|
||||||
}
|
|
||||||
if (format) {
|
if (format) {
|
||||||
av_log_ask_for_sample(avctx, "unsupported pixel format: %d\n", format);
|
av_log_ask_for_sample(avctx, "unsupported pixel format: %d\n", format);
|
||||||
return AVERROR_PATCHWELCOME;
|
return AVERROR_PATCHWELCOME;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user