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:
parent
65bf3c53a7
commit
c5c97a8d13
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user