aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-06-07 22:29:19 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-06-07 22:29:19 +0000
commitbe5f17b96bdd68d06397d62bdc6798d20546fe32 (patch)
treecbde1dcaf4d8aaa4de1d2955847f54c258140636 /libavcodec
parent3596aa6fe61177f7bdc0381defa8f9e6ce85d85b (diff)
downloadffmpeg-be5f17b96bdd68d06397d62bdc6798d20546fe32.tar.gz
read frame type from header info into decode context
Originally committed as revision 13690 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 94c98ac102..9bfbec39b7 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 frame_type; ///< frame type (strmtyp)
int substreamid; ///< substream identification
int frame_size; ///< current frame size, in bytes
@@ -327,6 +328,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->frame_type = hdr.frame_type;
s->substreamid = hdr.substreamid;
if(s->lfe_on) {