You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
hqx: Merge invalid format check within switch block
This commit is contained in:
@@ -573,8 +573,7 @@ static int hqx_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
avctx->pix_fmt = AV_PIX_FMT_YUVA444P16;
|
avctx->pix_fmt = AV_PIX_FMT_YUVA444P16;
|
||||||
decode_func = hqx_decode_444a;
|
decode_func = hqx_decode_444a;
|
||||||
break;
|
break;
|
||||||
}
|
default:
|
||||||
if (!decode_func) {
|
|
||||||
av_log(avctx, AV_LOG_ERROR, "Invalid format: %d.\n", ctx->format);
|
av_log(avctx, AV_LOG_ERROR, "Invalid format: %d.\n", ctx->format);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user