Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-13 15:49:48 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-02-13 15:49:48 +0400
commit0dff771f31cffffec0e16944d3890564c2da16eb (patch)
tree6c6ab0759ebf48fd5a7a478f97fb2110b4c5ad6e /libavcodec/wma.c
parentdca6fb08a71b8201f0a32f9cff18e7753355733a (diff)
parent205a95f7b5178362874bc1e65eae9866723491c1 (diff)
Merge commit '205a95f7b5178362874bc1e65eae9866723491c1'
* commit '205a95f7b5178362874bc1e65eae9866723491c1': wmaenc: alloc/free coded_frame instead of keeping it in the WMACodecContext wma: decode directly to the user-provided AVFrame wmapro: decode directly to the user-provided AVFrame wavpack: decode directly to the user-provided AVFrame Conflicts: libavcodec/wavpack.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wma.c')
-rw-r--r--libavcodec/wma.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/wma.c b/libavcodec/wma.c
index 1e6ca61047..e704223f1e 100644
--- a/libavcodec/wma.c
+++ b/libavcodec/wma.c
@@ -390,6 +390,11 @@ int ff_wma_end(AVCodecContext *avctx)
av_free(s->int_table[i]);
}
+#if FF_API_OLD_ENCODE_AUDIO
+ if (av_codec_is_encoder(avctx->codec))
+ av_freep(&avctx->coded_frame);
+#endif
+
return 0;
}