Commit 701413eb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

avcodec: fix potential multiple free of hwaccel module

parent b10a605d
......@@ -1175,9 +1175,8 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
msg_Err( p_dec, "acceleration not available" );
vlc_va_Delete( p_va );
p_sys->p_va = NULL;
/* Fallback to default behaviour */
p_sys->p_va = NULL;
return avcodec_default_get_format( p_context, pi_fmt );
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