[FFmpeg-cvslog] r11358 - trunk/libavcodec/ac3dec.c
jbr
subversion
Sun Dec 30 22:26:30 CET 2007
Author: jbr
Date: Sun Dec 30 22:26:30 2007
New Revision: 11358
Log:
rename sampling_rate to sample_rate
Modified:
trunk/libavcodec/ac3dec.c
Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c (original)
+++ trunk/libavcodec/ac3dec.c Sun Dec 30 22:26:30 2007
@@ -145,7 +145,7 @@ typedef struct {
uint8_t dba_lengths[AC3_MAX_CHANNELS][8]; ///< delta segment lengths
uint8_t dba_values[AC3_MAX_CHANNELS][8]; ///< delta values for each segment
- int sampling_rate; ///< sample frequency, in Hz
+ int sample_rate; ///< sample frequency, in Hz
int bit_rate; ///< stream bit rate, in bits-per-second
int frame_size; ///< current frame size, in bytes
@@ -337,7 +337,7 @@ static int ac3_parse_header(AC3DecodeCon
surround_mix_level = gain_levels[surround_levels[hdr.surround_mix_level]];
s->lfe_on = hdr.lfe_on;
s->bit_alloc_params.sr_shift = hdr.sr_shift;
- s->sampling_rate = hdr.sample_rate;
+ s->sample_rate = hdr.sample_rate;
s->bit_rate = hdr.bit_rate;
s->channels = hdr.channels;
s->fbw_channels = s->channels - s->lfe_on;
@@ -1103,7 +1103,7 @@ static int ac3_decode_frame(AVCodecConte
return -1;
}
- avctx->sample_rate = s->sampling_rate;
+ avctx->sample_rate = s->sample_rate;
avctx->bit_rate = s->bit_rate;
/* check that reported frame size fits in input buffer */
More information about the ffmpeg-cvslog
mailing list