diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-12-23 20:26:15 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2013-02-12 12:22:40 -0500 |
commit | 205a95f7b5178362874bc1e65eae9866723491c1 (patch) | |
tree | 99a9271cbb803605ecc2ef338fe957032e53e341 /libavcodec/wma.c | |
parent | c815ca36412e54e641dd0a91bc54f43f4d9d5621 (diff) | |
download | ffmpeg-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.c | 5 |
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; } |