Commit 7fdb222d authored by michael's avatar michael

libdts support improvements by (Aurelien Jacobs)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3345 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8689290c
......@@ -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)
......
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment