Browse Source

pcm: always use codec->id instead of codec_id

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
tags/n2.1
Luca Barbato 12 years ago
parent
commit
c82da343e6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/pcm.c

+ 1
- 1
libavcodec/pcm.c View File

@@ -265,7 +265,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, "PCM DVD unsupported sample depth\n"); av_log(avctx, AV_LOG_ERROR, "PCM DVD unsupported sample depth\n");


Loading…
Cancel
Save