]> git.sesse.net Git - vlc/commitdiff
avcodec: use av_freep in encode_audio2 case too
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 24 Oct 2012 19:47:22 +0000 (22:47 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 24 Oct 2012 19:47:47 +0000 (22:47 +0300)
modules/codec/avcodec/encoder.c

index 86acd339debc74a701c776b9fde376f6d3d1a797..73f5dd3a21a39707bf0bca04b65623bab9704607 100644 (file)
@@ -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 )