Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-20 05:29:58 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-20 05:29:58 +0300
commit73e6af9d7b56f12d8676ff919f4acc6c9991d985 (patch)
tree059e6a6f2697ddccb7554ffcf9d36dd0b421bb9d /libavcodec/hqx.c
parentdbd94b771f1b1a90591e556edb65c91a34f994b6 (diff)
parent17aa81d94781c6f62dc7d1dbd1f8891c020c9905 (diff)
Merge commit '17aa81d94781c6f62dc7d1dbd1f8891c020c9905'
* commit '17aa81d94781c6f62dc7d1dbd1f8891c020c9905': hqx: Merge invalid format check within switch block Conflicts: libavcodec/hqx.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hqx.c')
-rw-r--r--libavcodec/hqx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/hqx.c b/libavcodec/hqx.c
index 13c74f97e8..2a77444d81 100644
--- a/libavcodec/hqx.c
+++ b/libavcodec/hqx.c
@@ -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;
}