diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-07-10 04:54:49 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-07-12 04:34:49 +0200 |
commit | c82da343e635663605bd81c59d872bee3182da73 (patch) | |
tree | 572a7672a7108cda73cf847de94d0e8bbf68ca32 /libavcodec | |
parent | c0d973c41b4568d5bad1295879e35cfa611bdcf2 (diff) | |
download | ffmpeg-c82da343e635663605bd81c59d872bee3182da73.tar.gz |
pcm: always use codec->id instead of codec_id
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index c56a95e3b5..31ee283daf 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -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 */ 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 && avctx->bits_per_coded_sample != 24) { av_log(avctx, AV_LOG_ERROR, "PCM DVD unsupported sample depth\n"); |