[FFmpeg-cvslog] pcm-mpeg: fix 10l condition flip
Michael Niedermayer
git at videolan.org
Sun Mar 4 16:55:46 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Mar 4 16:38:20 2012 +0100| [52807022abf3204c3ae9fd6a1778a4d15e469b07] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=52807022abf3204c3ae9fd6a1778a4d15e469b07
---
libavcodec/pcm-mpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c
index 934b3bd..4269dd4 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;
}
More information about the ffmpeg-cvslog
mailing list