1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

libdts support improvements by (Aurelien Jacobs)

Originally committed as revision 3345 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-07-26 16:36:36 +00:00
parent 65bf3c53a7
commit c5c97a8d13
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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))