aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThilo Borgmann <thilo.borgmann@googlemail.com>2010-02-01 09:53:37 +0000
committerThilo Borgmann <thilo.borgmann@googlemail.com>2010-02-01 09:53:37 +0000
commit8e14fbe89bf1903b2df37399d961dad5458288a1 (patch)
tree8f125688a91fb3626db4fb204bd1243945c3ca31
parent41a4cd0c33624c7b8c38bc4a36e928257c8d5e3d (diff)
downloadffmpeg-8e14fbe89bf1903b2df37399d961dad5458288a1.tar.gz
Remove unnecessary fields in ALSSpecificConfig.
Originally committed as revision 21583 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/alsdec.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index b827cd013a..1c6af25f21 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -148,8 +148,6 @@ typedef struct {
int rlslms; ///< use "Recursive Least Square-Least Mean Square" predictor: 1 = on, 0 = off
int chan_config_info; ///< mapping of channels to loudspeaker locations. Unused until setting channel configuration is implemented.
int *chan_pos; ///< original channel positions
- uint32_t header_size; ///< header size of original audio file in bytes, provided for debugging
- uint32_t trailer_size; ///< trailer size of original audio file in bytes, provided for debugging
} ALSSpecificConfig;
@@ -234,8 +232,6 @@ static av_cold void dprint_specific_config(ALSDecContext *ctx)
dprintf(avctx, "chan_sort = %i\n", sconf->chan_sort);
dprintf(avctx, "RLSLMS = %i\n", sconf->rlslms);
dprintf(avctx, "chan_config_info = %i\n", sconf->chan_config_info);
- dprintf(avctx, "header_size = %i\n", sconf->header_size);
- dprintf(avctx, "trailer_size = %i\n", sconf->trailer_size);
#endif
}
@@ -250,7 +246,7 @@ static av_cold int read_specific_config(ALSDecContext *ctx)
MPEG4AudioConfig m4ac;
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
- uint32_t als_id;
+ uint32_t als_id, header_size, trailer_size;
init_get_bits(&gb, avctx->extradata, avctx->extradata_size * 8);
@@ -333,14 +329,14 @@ static av_cold int read_specific_config(ALSDecContext *ctx)
if (get_bits_left(&gb) < 64)
return -1;
- sconf->header_size = get_bits_long(&gb, 32);
- sconf->trailer_size = get_bits_long(&gb, 32);
- if (sconf->header_size == 0xFFFFFFFF)
- sconf->header_size = 0;
- if (sconf->trailer_size == 0xFFFFFFFF)
- sconf->trailer_size = 0;
+ header_size = get_bits_long(&gb, 32);
+ trailer_size = get_bits_long(&gb, 32);
+ if (header_size == 0xFFFFFFFF)
+ header_size = 0;
+ if (trailer_size == 0xFFFFFFFF)
+ trailer_size = 0;
- ht_size = ((int64_t)(sconf->header_size) + (int64_t)(sconf->trailer_size)) << 3;
+ ht_size = ((int64_t)(header_size) + (int64_t)(trailer_size)) << 3;
// skip the header and trailer data