Browse Source

cook: reverse a condition so that the code makes more sense

tags/n1.1
Justin Ruggles 13 years ago
parent
commit
d21b2e4726
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      libavcodec/cook.c

+ 2
- 3
libavcodec/cook.c View File

@@ -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);


Loading…
Cancel
Save