aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-06-07 22:29:11 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-06-07 22:29:11 +0000
commit3596aa6fe61177f7bdc0381defa8f9e6ce85d85b (patch)
tree7ac36f93876ee6bde25ef114e82564a06e931bbf /libavcodec/ac3dec.c
parent6730e9f300927c37d2016093684222fef63bb740 (diff)
downloadffmpeg-3596aa6fe61177f7bdc0381defa8f9e6ce85d85b.tar.gz
get substreamid from ac3 parser
Originally committed as revision 13689 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index ad5e0831f0..94c98ac102 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -134,6 +134,7 @@ typedef struct {
int sample_rate; ///< sample frequency, in Hz
int bit_rate; ///< stream bit rate, in bits-per-second
+ int substreamid; ///< substream identification
int frame_size; ///< current frame size, in bytes
int channels; ///< number of total channels
@@ -326,6 +327,7 @@ static int ac3_parse_header(AC3DecodeContext *s)
s->center_mix_level = hdr.center_mix_level;
s->surround_mix_level = hdr.surround_mix_level;
s->num_blocks = hdr.num_blocks;
+ s->substreamid = hdr.substreamid;
if(s->lfe_on) {
s->start_freq[s->lfe_ch] = 0;