aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wma.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-12-23 20:26:15 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2013-02-12 12:22:40 -0500
commit205a95f7b5178362874bc1e65eae9866723491c1 (patch)
tree99a9271cbb803605ecc2ef338fe957032e53e341 /libavcodec/wma.c
parentc815ca36412e54e641dd0a91bc54f43f4d9d5621 (diff)
downloadffmpeg-205a95f7b5178362874bc1e65eae9866723491c1.tar.gz
wmaenc: alloc/free coded_frame instead of keeping it in the WMACodecContext
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 03e310bc94..ab7bcf53a8 100644
--- a/libavcodec/wma.c
+++ b/libavcodec/wma.c
@@ -386,6 +386,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;
}