changeset 7013:d07912ff7dcd libavcodec

read frame type from header info into decode context
author jbr
date Sat, 07 Jun 2008 22:29:19 +0000
parents 4156c54aedba
children 24ddcb54f147
files ac3dec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Sat Jun 07 22:29:11 2008 +0000
+++ b/ac3dec.c	Sat Jun 07 22:29:19 2008 +0000
@@ -134,6 +134,7 @@
 
     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 @@
     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) {