[vlc-commits] avcodec: use av_freep in encode_audio2 case too

Ilkka Ollakka git at videolan.org
Wed Oct 24 21:48:38 CEST 2012


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Oct 24 22:47:22 2012 +0300| [f41ea01243bcdba5a92e02b3693895fa88d8d701] | committer: Ilkka Ollakka

avcodec: use av_freep in encode_audio2 case too

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f41ea01243bcdba5a92e02b3693895fa88d8d701
---

 modules/codec/avcodec/encoder.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 86acd33..73f5dd3 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -1063,7 +1063,7 @@ static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_aout_buf )
     i_out = avcodec_encode_audio2( p_sys->p_context, &packet, frame, &got_packet );
     p_block->i_buffer = packet.size;
     
-    avcodec_free_frame( &frame );
+    av_freep( &frame );
     if( unlikely( !got_packet || i_out ) )
     {
         if( i_out )



More information about the vlc-commits mailing list