summaryrefslogtreecommitdiff
path: root/libavcodec/iff.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-07-13 19:43:13 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-07-14 22:17:43 +0200
commit84669b1872269a458266b63005cade9788a00a64 (patch)
tree4065a97eda52c3ec68389f45dfa8cee922cb2388 /libavcodec/iff.c
parent3469cfab4adb242fa2116f4858f0768cec400afa (diff)
avcodec/iff: Add "else" to make code look prettier
Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/iff.c')
-rw-r--r--libavcodec/iff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/iff.c b/libavcodec/iff.c
index c6e2359b00..7f1c589d7c 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -284,7 +284,7 @@ static int extract_header(AVCodecContext *const avctx,
if (s->bpp > 8) {
av_log(avctx, AV_LOG_ERROR, "Invalid number of hold bits for HAM: %u\n", s->ham);
return AVERROR_INVALIDDATA;
- } if (s->ham != (s->bpp > 6 ? 6 : 4)) {
+ } else if (s->ham != (s->bpp > 6 ? 6 : 4)) {
av_log(avctx, AV_LOG_ERROR, "Invalid number of hold bits for HAM: %u, BPP: %u\n", s->ham, s->bpp);
return AVERROR_INVALIDDATA;
}