Commit 4e54f297 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: avcodec_alloc_frame() requires avcodec_free_frame()

parent ec9c6d8c
......@@ -1405,8 +1405,11 @@ void CloseEncoder( vlc_object_t *p_this )
encoder_t *p_enc = (encoder_t *)p_this;
encoder_sys_t *p_sys = p_enc->p_sys;
/*FIXME: we should use avcodec_free_frame, but we don't require so new avcodec that has it*/
#if (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0))
avcodec_free_frame( &p_sys->frame );
#else
av_freep( &p_sys->frame );
#endif
vlc_avcodec_lock();
avcodec_close( p_sys->p_context );
......
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