# HG changeset patch # User jbr # Date 1212877759 0 # Node ID d07912ff7dcd5ab91a8d7b7f5ba6704ca936d971 # Parent 4156c54aedba8571d2b11da87817f71df929c62f read frame type from header info into decode context diff -r 4156c54aedba -r d07912ff7dcd ac3dec.c --- 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) {