aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pcm-mpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-04 16:38:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-04 16:40:08 +0100
commit52807022abf3204c3ae9fd6a1778a4d15e469b07 (patch)
tree961b9c971b407964a0a42ca023b08ee7cf15f49f /libavcodec/pcm-mpeg.c
parent4a9f466b997e0c44d1e304a7a9c5d5de0b0868c7 (diff)
downloadffmpeg-52807022abf3204c3ae9fd6a1778a4d15e469b07.tar.gz
pcm-mpeg: fix 10l condition flip
Original issue Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind 10l bug Found-by: nevcairiel Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pcm-mpeg.c')
-rw-r--r--libavcodec/pcm-mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c
index 934b3bde8a..4269dd4443 100644
--- a/libavcodec/pcm-mpeg.c
+++ b/libavcodec/pcm-mpeg.c
@@ -69,7 +69,7 @@ static int pcm_bluray_parse_header(AVCodecContext *avctx,
/* get the sample depth and derive the sample format from it */
avctx->bits_per_coded_sample = bits_per_samples[header[3] >> 6];
- if (avctx->bits_per_coded_sample == 16 || avctx->bits_per_coded_sample == 24) {
+ if (!(avctx->bits_per_coded_sample == 16 || avctx->bits_per_coded_sample == 24)) {
av_log(avctx, AV_LOG_ERROR, "unsupported sample depth (%d)\n", avctx->bits_per_coded_sample);
return -1;
}