Commit 432f9c42 authored by Thomas Guillem's avatar Thomas Guillem

avcodec: put back avcodec_flush_buffers on pf_flush

Fixes #15834
parent 66bab23e
......@@ -502,14 +502,14 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
static void Flush( decoder_t *p_dec )
{
decoder_sys_t *p_sys = p_dec->p_sys;
AVCodecContext *p_context = p_sys->p_context;
p_sys->i_pts = VLC_TS_INVALID; /* To make sure we recover properly */
p_sys->i_late_frames = 0;
#if 0
post_mt( p_sys );
avcodec_flush_buffers( p_context );
wait_mt( p_sys );
#endif
}
/*****************************************************************************
......
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