aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-06-06 16:06:37 +0000
committerPaul B Mahol <onemda@gmail.com>2013-06-07 09:29:34 +0000
commitdc5c029f0285d6632837fd62a652dae7cd494113 (patch)
tree1d12b0593825dd14b355e5aa1ea845b38299b65b /libavcodec
parent5285a7549f6ee16d39da40eb144a95b03185116b (diff)
downloadffmpeg-dc5c029f0285d6632837fd62a652dae7cd494113.tar.gz
sonicenc: don't allocate unused avctx->coded_frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/sonic.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c
index b67434f9ca..a96e687748 100644
--- a/libavcodec/sonic.c
+++ b/libavcodec/sonic.c
@@ -596,10 +596,6 @@ static av_cold int sonic_encode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_INFO, "Sonic: ver: %d ls: %d dr: %d taps: %d block: %d frame: %d downsamp: %d\n",
version, s->lossless, s->decorrelation, s->num_taps, s->block_align, s->frame_size, s->downsampling);
- avctx->coded_frame = avcodec_alloc_frame();
- if (!avctx->coded_frame)
- return AVERROR(ENOMEM);
- avctx->coded_frame->key_frame = 1;
avctx->frame_size = s->block_align*s->downsampling;
return 0;
@@ -610,8 +606,6 @@ static av_cold int sonic_encode_close(AVCodecContext *avctx)
SonicContext *s = avctx->priv_data;
int i;
- av_freep(&avctx->coded_frame);
-
for (i = 0; i < s->channels; i++)
av_free(s->coded_samples[i]);