Browse Source

avcodec/iff: Add "else" to make code look prettier

Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.2
Michael Niedermayer 6 years ago
parent
commit
84669b1872
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/iff.c

+ 1
- 1
libavcodec/iff.c View File

@@ -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;
}


Loading…
Cancel
Save