diff options
author | Rafaël Carré <funman@videolan.org> | 2012-10-15 18:41:55 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-10-16 18:49:31 +0200 |
commit | a25d912dca9cd553440167e0476c47581359c0fc (patch) | |
tree | dafffe2d4a654d7d268b8051c80416c4e5a535ac /libavcodec | |
parent | 4a7429203a390f5629c819b98f314246b62b2145 (diff) | |
download | ffmpeg-a25d912dca9cd553440167e0476c47581359c0fc.tar.gz |
avcodec_encode_audio(): fix invalid free
Since 2bc0de385, AVFrame needs to be initialized
before calling avcodec_get_frame_defaults().
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index bb99a5a32d..836d95388d 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1073,7 +1073,7 @@ int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx, const short *samples) { AVPacket pkt; - AVFrame frame0; + AVFrame frame0 = { 0 }; AVFrame *frame; int ret, samples_size, got_packet; |