mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
4a9f466b99
commit
52807022ab
|
@ -69,7 +69,7 @@ static int pcm_bluray_parse_header(AVCodecContext *avctx,
|
||||||
|
|
||||||
/* get the sample depth and derive the sample format from it */
|
/* get the sample depth and derive the sample format from it */
|
||||||
avctx->bits_per_coded_sample = bits_per_samples[header[3] >> 6];
|
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);
|
av_log(avctx, AV_LOG_ERROR, "unsupported sample depth (%d)\n", avctx->bits_per_coded_sample);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue