[FFmpeg-soc] [soc]: r1726 - in eac3: ac3.h ac3_parser.c
jbr
subversion at mplayerhq.hu
Mon Dec 31 02:30:37 CET 2007
Author: jbr
Date: Mon Dec 31 02:30:37 2007
New Revision: 1726
Log:
add number of blocks to AC3HeaderInfo
Modified:
eac3/ac3.h
eac3/ac3_parser.c
Modified: eac3/ac3.h
==============================================================================
--- eac3/ac3.h (original)
+++ eac3/ac3.h Mon Dec 31 02:30:37 2007
@@ -94,6 +94,7 @@ typedef struct {
uint32_t bit_rate;
uint8_t channels;
uint16_t frame_size;
+ uint8_t num_blocks;
/** @} */
} AC3HeaderInfo;
Modified: eac3/ac3_parser.c
==============================================================================
--- eac3/ac3_parser.c (original)
+++ eac3/ac3_parser.c Mon Dec 31 02:30:37 2007
@@ -81,6 +81,7 @@ int ff_ac3_parse_header(const uint8_t bu
hdr->bit_rate = (ff_ac3_bitrate_tab[frame_size_code>>1] * 1000) >> hdr->sr_shift;
hdr->channels = ff_ac3_channels_tab[hdr->channel_mode] + hdr->lfe_on;
hdr->frame_size = ff_ac3_frame_size_tab[frame_size_code][hdr->sr_code] * 2;
+ hdr->num_blocks = 6;
return 0;
}
More information about the FFmpeg-soc
mailing list