Skip to content
Snippets Groups Projects
Commit be5f17b9 authored by Justin Ruggles's avatar Justin Ruggles
Browse files

read frame type from header info into decode context

Originally committed as revision 13690 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3596aa6f
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,7 @@ typedef struct { ...@@ -134,6 +134,7 @@ typedef struct {
int sample_rate; ///< sample frequency, in Hz int sample_rate; ///< sample frequency, in Hz
int bit_rate; ///< stream bit rate, in bits-per-second int bit_rate; ///< stream bit rate, in bits-per-second
int frame_type; ///< frame type (strmtyp)
int substreamid; ///< substream identification int substreamid; ///< substream identification
int frame_size; ///< current frame size, in bytes int frame_size; ///< current frame size, in bytes
...@@ -327,6 +328,7 @@ static int ac3_parse_header(AC3DecodeContext *s) ...@@ -327,6 +328,7 @@ static int ac3_parse_header(AC3DecodeContext *s)
s->center_mix_level = hdr.center_mix_level; s->center_mix_level = hdr.center_mix_level;
s->surround_mix_level = hdr.surround_mix_level; s->surround_mix_level = hdr.surround_mix_level;
s->num_blocks = hdr.num_blocks; s->num_blocks = hdr.num_blocks;
s->frame_type = hdr.frame_type;
s->substreamid = hdr.substreamid; s->substreamid = hdr.substreamid;
if(s->lfe_on) { if(s->lfe_on) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment