[FFmpeg-cvslog] r13690 - trunk/libavcodec/ac3dec.c

jbr subversion
Sun Jun 8 00:29:21 CEST 2008


Author: jbr
Date: Sun Jun  8 00:29:19 2008
New Revision: 13690

Log:
read frame type from header info into decode context


Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	(original)
+++ trunk/libavcodec/ac3dec.c	Sun Jun  8 00:29:19 2008
@@ -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(AC3DecodeCon
     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) {




More information about the ffmpeg-cvslog mailing list