1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-04-24 17:12:34 +02:00

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

This commit is contained in:
Justin Ruggles 2012-10-21 14:33:11 -04:00
parent 926e9d28f1
commit d21b2e4726

@ -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 */ /* Try to catch some obviously faulty streams, othervise it might be exploitable */
if ((q->samples_per_channel == 256) || (q->samples_per_channel == 512) if (q->samples_per_channel != 256 && q->samples_per_channel != 512 &&
|| (q->samples_per_channel == 1024)) { q->samples_per_channel != 1024) {
} else {
av_log_ask_for_sample(avctx, av_log_ask_for_sample(avctx,
"unknown amount of samples_per_channel = %d\n", "unknown amount of samples_per_channel = %d\n",
q->samples_per_channel); q->samples_per_channel);