mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +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
|
# currently using libdts for dts decoding
|
||||||
ifeq ($(CONFIG_DTS),yes)
|
ifeq ($(CONFIG_DTS),yes)
|
||||||
OBJS+= dtsdec.o
|
OBJS+= dtsdec.o
|
||||||
|
CFLAGS += $(DTS_INC)
|
||||||
|
EXTRALIBS += -ldts
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_FAAD),yes)
|
ifeq ($(CONFIG_FAAD),yes)
|
||||||
|
@ -258,6 +258,9 @@ dts_decode_frame (AVCodecContext *avctx, void *data, int *data_size,
|
|||||||
flags |= DTS_ADJUST_LEVEL;
|
flags |= DTS_ADJUST_LEVEL;
|
||||||
if (dts_frame (state, buf, &flags, &level, bias))
|
if (dts_frame (state, buf, &flags, &level, bias))
|
||||||
goto error;
|
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++)
|
for (i = 0; i < dts_blocks_num (state); i++)
|
||||||
{
|
{
|
||||||
if (dts_block (state))
|
if (dts_block (state))
|
||||||
|
Loading…
Reference in New Issue
Block a user