]> git.sesse.net Git - ffmpeg/commitdiff
Drop unnecessary av_uninit attributes from some variable declarations.
authorDiego Biurrun <diego@biurrun.de>
Mon, 13 Feb 2012 07:24:00 +0000 (08:24 +0100)
committerDiego Biurrun <diego@biurrun.de>
Mon, 13 Feb 2012 18:20:52 +0000 (19:20 +0100)
Recent versions of gcc (4.4+) no longer give false positive warnings.

libavcodec/ac3enc.c
libavcodec/ac3enc_template.c
libavcodec/eatgv.c
libavcodec/flacdec.c
libavcodec/msrledec.c
libavcodec/qtrleenc.c

index b8e23e49f6182934b6cfc44c8eb31da9abf96fc0..3bf5f9405cf4c878262498edbd597edd7dc9b293 100644 (file)
@@ -1386,8 +1386,7 @@ static void ac3_output_frame_header(AC3EncodeContext *s)
  */
 static void output_audio_block(AC3EncodeContext *s, int blk)
 {
-    int ch, i, baie, bnd, got_cpl;
-    int av_uninit(ch0);
+    int ch, i, baie, bnd, got_cpl, ch0;
     AC3Block *block = &s->blocks[blk];
 
     /* block switching */
@@ -2236,8 +2235,7 @@ static av_cold int validate_options(AC3EncodeContext *s)
  */
 static av_cold void set_bandwidth(AC3EncodeContext *s)
 {
-    int blk, ch;
-    int av_uninit(cpl_start);
+    int blk, ch, cpl_start;
 
     if (s->cutoff) {
         /* calculate bandwidth based on user-specified cutoff frequency */
index 3396ed17b7dd49e89544a1c03c98f674aee8698e..bc06c2f46fac28929104a1e4e61574ea86901600 100644 (file)
@@ -335,7 +335,7 @@ static void compute_rematrixing_strategy(AC3EncodeContext *s)
 {
     int nb_coefs;
     int blk, bnd, i;
-    AC3Block *block, *av_uninit(block0);
+    AC3Block *block, *block0;
 
     if (s->channel_mode != AC3_CHMODE_STEREO)
         return;
index ccdb35ef2bd2221444a15a7b59898feec1b6e7b5..025188bc8932f4afb07e3ec91fd4b36a767530a3 100644 (file)
@@ -64,7 +64,7 @@ static av_cold int tgv_decode_init(AVCodecContext *avctx){
  */
 static int unpack(const uint8_t *src, const uint8_t *src_end, unsigned char *dst, int width, int height) {
     unsigned char *dst_end = dst + width*height;
-    int size, size1, size2, av_uninit(offset), run;
+    int size, size1, size2, offset, run;
     unsigned char *dst_start = dst;
 
     if (src[0] & 0x01)
index 58eb66def9a58d0d06bb9cd9ab0ba69dbcb0eeb0..2b7f7eeb9e96fd30ef389525243a34fc859c3846 100644 (file)
@@ -288,7 +288,7 @@ static int decode_subframe_fixed(FLACContext *s, int channel, int pred_order)
 {
     const int blocksize = s->blocksize;
     int32_t *decoded = s->decoded[channel];
-    int av_uninit(a), av_uninit(b), av_uninit(c), av_uninit(d), i;
+    int a, b, c, d, i;
 
     /* warm up samples */
     for (i = 0; i < pred_order; i++) {
index 4714772a203bdaad90a4178828a9d23d2d465bda..9854d82fb4ef2e4a6ab262cd7bc28ebf99b79e65 100644 (file)
@@ -134,8 +134,8 @@ static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic, int de
     uint8_t *output, *output_end;
     const uint8_t* src = data;
     int p1, p2, line=avctx->height - 1, pos=0, i;
-    uint16_t av_uninit(pix16);
-    uint32_t av_uninit(pix32);
+    uint16_t pix16;
+    uint32_t pix32;
     unsigned int width= FFABS(pic->linesize[0]) / (depth >> 3);
 
     output     = pic->data[0] + (avctx->height - 1) * pic->linesize[0];
index ede03d2f782afd0e76105ee0f2dff976011dcd41..3ffce2bc7f8fcee410022279b83f69ecaf330b20 100644 (file)
@@ -120,7 +120,7 @@ static void qtrle_encode_line(QtrleEncContext *s, AVFrame *p, int line, uint8_t
     unsigned int skipcount;
     /* This will be the number of consecutive equal pixels in the current
      * frame, starting from the ith one also */
-    unsigned int av_uninit(repeatcount);
+    unsigned int repeatcount;
 
     /* The cost of the three different possibilities */
     int total_bulk_cost;