aboutsummaryrefslogtreecommitdiff
path: root/gst-libs/ext/libav/libavcodec/pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/ext/libav/libavcodec/pcm.c')
-rw-r--r--gst-libs/ext/libav/libavcodec/pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/ext/libav/libavcodec/pcm.c b/gst-libs/ext/libav/libavcodec/pcm.c
index d6899cf..5cc989b 100644
--- a/gst-libs/ext/libav/libavcodec/pcm.c
+++ b/gst-libs/ext/libav/libavcodec/pcm.c
@@ -268,7 +268,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");