Browse Source

sunrast: Remove the useless check.

in , else (1) { if (!1) } the if conditional will never evaluate to be true.
So as making the check useless.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Aneesh Dogra Michael Niedermayer 13 years ago
parent
commit
1b7ff90107
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      libavcodec/sunrast.c

+ 0
- 4
libavcodec/sunrast.c View File

@@ -153,10 +153,6 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
} else if (maplength) {
unsigned int len = maplength / 3;

if (!maplength) {
av_log(avctx, AV_LOG_ERROR, "colormap expected\n");
return -1;
}
if (maplength % 3 || maplength > 768) {
av_log(avctx, AV_LOG_WARNING, "invalid colormap length\n");
return -1;


Loading…
Cancel
Save