Re: [FFmpeg-devel] [PATCH] avcodec/qsvdec:flush the buffered data before reinit

2018-10-10 Thread Li, Zhong
> From: Fu, Linjie > Sent: Sunday, September 30, 2018 9:01 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Fu, Linjie ; Li, Zhong > Subject: [PATCH] avcodec/qsvdec:flush the buffered data before reinit > > Flush the buffered data in libmfx before video param reinit in case the > frames drop. > > Cache

[FFmpeg-devel] [PATCH] avcodec/qsvdec:flush the buffered data before reinit

2018-09-29 Thread Linjie Fu
Flush the buffered data in libmfx before video param reinit in case the frames drop. Cache the first frame causing the reinit and decode zero-size pkt to flush the buffered pkt before reinit. After all the buffered pkts being flushed, resume to reinit and decode. Fix the issue in ticket #7399.