• Linjie Fu's avatar
    lavc/qsvdec: flush buffered data before reinit · 87368884
    Linjie Fu authored
    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.
    
    [V2]: Move the definition of zero_pkt to where it is exactly
    used.
    Signed-off-by: 's avatarLinjie Fu <linjie.fu@intel.com>
    Signed-off-by: 's avatarZhong Li <zhong.li@intel.com>
    87368884
qsvdec.h 2.26 KB