From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/libavcodec/ac3enc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ffmpeg/libavcodec/ac3enc.c') 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 +#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); -- cgit v1.2.3