Browse Source

hqx: Merge invalid format check within switch block

tags/n2.7
Vittorio Giovara 10 years ago
parent
commit
17aa81d947
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/hqx.c

+ 1
- 2
libavcodec/hqx.c View File

@@ -573,8 +573,7 @@ static int hqx_decode_frame(AVCodecContext *avctx, void *data,
avctx->pix_fmt = AV_PIX_FMT_YUVA444P16;
decode_func = hqx_decode_444a;
break;
}
if (!decode_func) {
default:
av_log(avctx, AV_LOG_ERROR, "Invalid format: %d.\n", ctx->format);
return AVERROR_INVALIDDATA;
}


Loading…
Cancel
Save