summaryrefslogtreecommitdiff
path: root/libavcodec/libopencore-amr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-23 17:38:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-23 17:38:39 +0100
commitd94633409bb19faf743359d923029f504f6c4ce1 (patch)
tree4f6c03976685024df79fa30ae9588c2f3f47277c /libavcodec/libopencore-amr.c
parent57c63c92c57945711c1aa36d2979dbbd2f4dbfb0 (diff)
avcodec/libopencore-amr: remove av_free coded_frame.
There seems to be nothing that sets coded_frame also av_free is wrong Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libopencore-amr.c')
-rw-r--r--libavcodec/libopencore-amr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index 75c467ff59..3a8787b9dd 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -205,7 +205,6 @@ static av_cold int amr_nb_encode_init(AVCodecContext *avctx)
s->enc_state = Encoder_Interface_init(s->enc_dtx);
if (!s->enc_state) {
av_log(avctx, AV_LOG_ERROR, "Encoder_Interface_init error\n");
- av_freep(&avctx->coded_frame);
return -1;
}