Commit fec1494d authored by Laurent Aimar's avatar Laurent Aimar

Used the AVCodecContext given to AVCodecContext::get_buffer() and not the global one.

The global one may not be in synch when the callback is called.
parent b1b6d346
...@@ -947,8 +947,8 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context, ...@@ -947,8 +947,8 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
#ifdef HAVE_AVCODEC_VA #ifdef HAVE_AVCODEC_VA
/* hwaccel_context is not present in old ffmpeg version */ /* hwaccel_context is not present in old ffmpeg version */
if( vlc_va_Setup( p_sys->p_va, if( vlc_va_Setup( p_sys->p_va,
&p_sys->p_context->hwaccel_context, &p_dec->fmt_out.video.i_chroma, &p_context->hwaccel_context, &p_dec->fmt_out.video.i_chroma,
p_sys->p_context->width, p_sys->p_context->height ) ) p_context->width, p_context->height ) )
{ {
msg_Err( p_dec, "vlc_va_Setup failed" ); msg_Err( p_dec, "vlc_va_Setup failed" );
return -1; return -1;
......
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