aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-21 14:33:11 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-01 11:29:15 -0400
commitd21b2e4726822ec1c604e2b9010a1a2cc0d88aec (patch)
treea6fad45ecdc34fc6a328b8d1dd0be0740f2390af
parent926e9d28f1a85898545706a26b27c24672c9c716 (diff)
downloadffmpeg-d21b2e4726822ec1c604e2b9010a1a2cc0d88aec.tar.gz
cook: reverse a condition so that the code makes more sense
-rw-r--r--libavcodec/cook.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index f6d2e664ab..211fe12d72 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -1244,9 +1244,8 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
}
/* Try to catch some obviously faulty streams, othervise it might be exploitable */
- if ((q->samples_per_channel == 256) || (q->samples_per_channel == 512)
- || (q->samples_per_channel == 1024)) {
- } else {
+ if (q->samples_per_channel != 256 && q->samples_per_channel != 512 &&
+ q->samples_per_channel != 1024) {
av_log_ask_for_sample(avctx,
"unknown amount of samples_per_channel = %d\n",
q->samples_per_channel);