diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-06-18 11:41:04 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-06-20 16:49:11 +0200 |
commit | 720a1de52fb4abd8e0541cdcc7d57cb0044c7d3a (patch) | |
tree | 6782e45d4fe8f10ba3e236b7c9167d0928b1f2a3 /libavcodec | |
parent | eeeb5c291d3f78eaade5b99c2614c7cab0e9be79 (diff) | |
download | ffmpeg-720a1de52fb4abd8e0541cdcc7d57cb0044c7d3a.tar.gz |
lavc: free the padded last frame during audio encoding properly
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/utils.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 3dddafca10..ee0b571f45 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1245,12 +1245,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx, avpkt->flags |= AV_PKT_FLAG_KEY; end: - if (padded_frame) { - av_freep(&padded_frame->data[0]); - if (padded_frame->extended_data != padded_frame->data) - av_freep(&padded_frame->extended_data); - av_freep(&padded_frame); - } + av_frame_free(&padded_frame); return ret; } |