psz_namecodec = "Raw video";
}
+ if( i_cat == UNKNOWN_ES )
+ return VLC_EGENERIC;
+
if( p_enc->fmt_out.i_cat == VIDEO_ES && i_cat != VIDEO_ES )
{
msg_Err( p_enc, "\"%s\" is not a video encoder", psz_namecodec );
#if (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0))
avcodec_free_frame( &p_sys->frame );
#else
- av_freep( &p_sys->frame );
+ av_free( p_sys->frame );
+ p_sys->frame = NULL;
#endif
vlc_avcodec_lock();