avcodec_encode_audio(): fix invalid free
authorRafaël Carré <funman@videolan.org>
Mon, 15 Oct 2012 16:41:55 +0000 (18:41 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 16 Oct 2012 16:49:31 +0000 (18:49 +0200)
commita25d912dca9cd553440167e0476c47581359c0fc
treedafffe2d4a654d7d268b8051c80416c4e5a535ac
parent4a7429203a390f5629c819b98f314246b62b2145
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>
libavcodec/utils.c