Browse Source

ac3enc: fix 'warning: block0 may be used uninitialized in this function'

The pointer is also initialized to NULL for safety.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 13 years ago
parent
commit
ebe368d5d8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ac3enc_template.c

+ 1
- 1
libavcodec/ac3enc_template.c View File

@@ -336,7 +336,7 @@ static void compute_rematrixing_strategy(AC3EncodeContext *s)
{
int nb_coefs;
int blk, bnd;
AC3Block *block, *block0;
AC3Block *block, *block0 = NULL;

if (s->channel_mode != AC3_CHMODE_STEREO)
return;


Loading…
Cancel
Save