Mercurial > libavcodec.hg
changeset 2141:a0f5f4731ccd libavcodec
libdts support improvements by (Aurelien Jacobs)
author | michael |
---|---|
date | Mon, 26 Jul 2004 16:36:36 +0000 |
parents | cd1a71898311 |
children | caacb3f9ee51 |
files | Makefile dtsdec.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Jul 26 15:52:55 2004 +0000 +++ b/Makefile Mon Jul 26 16:36:36 2004 +0000 @@ -76,6 +76,8 @@ # currently using libdts for dts decoding ifeq ($(CONFIG_DTS),yes) OBJS+= dtsdec.o +CFLAGS += $(DTS_INC) +EXTRALIBS += -ldts endif ifeq ($(CONFIG_FAAD),yes)
--- a/dtsdec.c Mon Jul 26 15:52:55 2004 +0000 +++ b/dtsdec.c Mon Jul 26 16:36:36 2004 +0000 @@ -258,6 +258,9 @@ 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))