diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-07-26 16:36:36 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-07-26 16:36:36 +0000 |
commit | c5c97a8d1329218181a51f3b990626b5bd55c3c6 (patch) | |
tree | 66843042a61e2159a14a6a544f58c45da5e627ee /libavcodec/dtsdec.c | |
parent | 65bf3c53a73bcd9cf6049698d0577def67db91c8 (diff) | |
download | ffmpeg-c5c97a8d1329218181a51f3b990626b5bd55c3c6.tar.gz |
libdts support improvements by (Aurelien Jacobs)
Originally committed as revision 3345 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dtsdec.c')
-rw-r--r-- | libavcodec/dtsdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/dtsdec.c b/libavcodec/dtsdec.c index 2bc88d078b..397e74cceb 100644 --- a/libavcodec/dtsdec.c +++ b/libavcodec/dtsdec.c @@ -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)) |