Commit 73e6af9d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '17aa81d9'

* commit '17aa81d9':
  hqx: Merge invalid format check within switch block

Conflicts:
	libavcodec/hqx.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents dbd94b77 17aa81d9
......@@ -607,8 +607,7 @@ static int hqx_decode_frame(AVCodecContext *avctx, void *data,
avctx->pix_fmt = AV_PIX_FMT_YUVA444P16;
arg_data.decode_func = hqx_decode_444a;
break;
}
if (!arg_data.decode_func) {
default:
av_log(avctx, AV_LOG_ERROR, "Invalid format: %d.\n", ctx->format);
return AVERROR_INVALIDDATA;
}
......
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