Commit f41ea012 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: use av_freep in encode_audio2 case too

parent 99ba52e3
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment