diff options
Diffstat (limited to 'ffmpeg/libavcodec/ac3enc.c')
| -rw-r--r-- | ffmpeg/libavcodec/ac3enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ffmpeg/libavcodec/ac3enc.c b/ffmpeg/libavcodec/ac3enc.c index 15ff343..37c496c 100644 --- a/ffmpeg/libavcodec/ac3enc.c +++ b/ffmpeg/libavcodec/ac3enc.c @@ -26,10 +26,9 @@ * The simplest AC-3 encoder. */ -//#define ASSERT_LEVEL 2 - #include <stdint.h> +#include "libavutil/attributes.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" @@ -754,7 +753,7 @@ static void count_frame_bits_fixed(AC3EncodeContext *s) * Initialize bit allocation. * Set default parameter codes and calculate parameter values. */ -static void bit_alloc_init(AC3EncodeContext *s) +static av_cold void bit_alloc_init(AC3EncodeContext *s) { int ch; @@ -2018,6 +2017,7 @@ av_cold int ff_ac3_encode_close(AVCodecContext *avctx) AC3EncodeContext *s = avctx->priv_data; av_freep(&s->windowed_samples); + if (s->planar_samples) for (ch = 0; ch < s->channels; ch++) av_freep(&s->planar_samples[ch]); av_freep(&s->planar_samples); |
