aboutsummaryrefslogtreecommitdiff
path: root/libavformat/img2dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer2016-12-21 22:03:55 +0100
committerMichael Niedermayer2016-12-21 22:40:14 +0100
commitfd1fcb59dcdb0b1644097a69d0c64084bdc26052 (patch)
tree84cae46adfbec736e9f0126bb5c84d7b921b1c50 /libavformat/img2dec.c
parent9933579a9be762c20a5a201b8685d09d40aa2cf5 (diff)
avformat/img2dec: Remove dead code from psd_probe()
Fixes CID1397124 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r--libavformat/img2dec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index f1a0e7fa54..c8d70314f6 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -847,10 +847,7 @@ static int psd_probe(AVProbeData *p)
if ((color_mode <= 9) && (color_mode != 5) && (color_mode != 6))
ret += 1;
- if (ret)
- return AVPROBE_SCORE_EXTENSION + ret;
-
- return 0;
+ return AVPROBE_SCORE_EXTENSION + ret;
}
static int sgi_probe(AVProbeData *p)