summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/Makefile2
-rw-r--r--libavcodec/dtsdec.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 4a82e28032..45d632ec89 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -76,6 +76,8 @@ endif
# currently using libdts for dts decoding
ifeq ($(CONFIG_DTS),yes)
OBJS+= dtsdec.o
+CFLAGS += $(DTS_INC)
+EXTRALIBS += -ldts
endif
ifeq ($(CONFIG_FAAD),yes)
diff --git a/libavcodec/dtsdec.c b/libavcodec/dtsdec.c
index 2bc88d078b..397e74cceb 100644
--- a/libavcodec/dtsdec.c
+++ b/libavcodec/dtsdec.c
@@ -258,6 +258,9 @@ dts_decode_frame (AVCodecContext *avctx, void *data, int *data_size,
flags |= DTS_ADJUST_LEVEL;
if (dts_frame (state, buf, &flags, &level, bias))
goto error;
+ avctx->sample_rate = sample_rate;
+ avctx->channels = channels_multi (flags);
+ avctx->bit_rate = bit_rate;
for (i = 0; i < dts_blocks_num (state); i++)
{
if (dts_block (state))