mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
read frame type from header info into decode context
Originally committed as revision 13690 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3596aa6fe6
commit
be5f17b96b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user