avcodec/ac3enc_template: add fbw_channels assert

fbw_channels must be > 0 as teh code is only run if cpl_enabled is set and that requires mode >= AC3_CHMODE_STEREO

CID 718138 Uninitialized scalar variable
	assumes this assert to be false
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 98ae1ad7
......@@ -223,6 +223,8 @@ static void apply_channel_coupling(AC3EncodeContext *s)
}
}
av_assert1(s->fbw_channels > 0);
/* calculate final coupling coordinates, taking into account reusing of
coordinates in successive blocks */
for (bnd = 0; bnd < s->num_cpl_bands; bnd++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment