mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
036b9ee1c9
commit
ebe368d5d8
@ -336,7 +336,7 @@ static void compute_rematrixing_strategy(AC3EncodeContext *s)
|
|||||||
{
|
{
|
||||||
int nb_coefs;
|
int nb_coefs;
|
||||||
int blk, bnd;
|
int blk, bnd;
|
||||||
AC3Block *block, *block0;
|
AC3Block *block, *block0 = NULL;
|
||||||
|
|
||||||
if (s->channel_mode != AC3_CHMODE_STEREO)
|
if (s->channel_mode != AC3_CHMODE_STEREO)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user