Commit 73f940e4 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c82da343'

* commit 'c82da343':
  pcm: always use codec->id instead of codec_id

This is not merged as we consistently use codec_id, while libav against what
the comit message might hint at mixes both in the decoder.
Its fine to use either but it should be consistent.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 0da0caa9 c82da343
...@@ -298,7 +298,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data, ...@@ -298,7 +298,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data,
/* av_get_bits_per_sample returns 0 for AV_CODEC_ID_PCM_DVD */ /* av_get_bits_per_sample returns 0 for AV_CODEC_ID_PCM_DVD */
samples_per_block = 1; samples_per_block = 1;
if (AV_CODEC_ID_PCM_DVD == avctx->codec_id) { if (avctx->codec_id == AV_CODEC_ID_PCM_DVD) {
if (avctx->bits_per_coded_sample != 20 && if (avctx->bits_per_coded_sample != 20 &&
avctx->bits_per_coded_sample != 24) { avctx->bits_per_coded_sample != 24) {
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment