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:
authorAneesh Dogra <lionaneesh@gmail.com>2012-02-10 10:08:07 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-02-10 10:10:30 +0400
commit1b7ff901078064ccd7df3640e0958a344b2c00cb (patch)
treef5f725b40aede614aa006d4e7f0d5eb411d7c6de /libavcodec/sunrast.c
parent29034e65039ef6b1854ceeb76ffe4092992d9fd5 (diff)
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>
Diffstat (limited to 'libavcodec/sunrast.c')
-rw-r--r--libavcodec/sunrast.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index aa12947f5f..8562e11ac4 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -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;