git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
379fcc4
)
alacenc: don't allocate unused avctx->coded_frame
author
Paul B Mahol
<onemda@gmail.com>
Thu, 6 Jun 2013 15:58:03 +0000
(15:58 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Fri, 7 Jun 2013 09:29:33 +0000
(09:29 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/alacenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/alacenc.c
b/libavcodec/alacenc.c
index
4ee558c
..
c41ad1a
100644
(file)
--- a/
libavcodec/alacenc.c
+++ b/
libavcodec/alacenc.c
@@
-483,7
+483,6
@@
static av_cold int alac_encode_close(AVCodecContext *avctx)
ff_lpc_end(&s->lpc_ctx);
av_freep(&avctx->extradata);
avctx->extradata_size = 0;
- av_freep(&avctx->coded_frame);
return 0;
}
@@
-579,12
+578,6
@@
static av_cold int alac_encode_init(AVCodecContext *avctx)
goto error;
}
- avctx->coded_frame = avcodec_alloc_frame();
- if (!avctx->coded_frame) {
- ret = AVERROR(ENOMEM);
- goto error;
- }
-
s->avctx = avctx;
if ((ret = ff_lpc_init(&s->lpc_ctx, avctx->frame_size,