OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29034e6
)
sunrast: Remove the useless check.
author
Aneesh Dogra
<lionaneesh@gmail.com>
Fri, 10 Feb 2012 06:08:07 +0000
(11:38 +0530)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 10 Feb 2012 06:10:30 +0000
(07:10 +0100)
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>
libavcodec/sunrast.c
patch
|
blob
|
history
diff --git
a/libavcodec/sunrast.c
b/libavcodec/sunrast.c
index
aa12947
..
8562e11
100644
(file)
--- 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;