diff options
author | Wenbin Chen <[email protected]> | 2023-02-13 17:03:17 +0800 |
---|---|---|
committer | Haihao Xiang <[email protected]> | 2023-02-16 11:15:50 +0800 |
commit | aeceefa6220ccb8eac625f78c6fa90d048ccd2de (patch) | |
tree | 6e030a56ab9306d34ce7d4397dda8e1e7b9e9851 /libavcodec/x86/opusdsp_init.c | |
parent | e530d38bbf5f58e3e22f87dff635a50e267abb77 (diff) |
libavcodec/qsvenc: Flush cached frames before reset encoder
According to https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#configuration-change.
Before calling MFXVideoENCODE_Reset, The application needs to retrieve
any cached frames in the SDK encoder.
A loop is added before MFXVideoENCODE_Reset to retrieve cached frames
and add them to async_fifo, so that dynamic configuration works when
async_depth > 1.
Signed-off-by: Wenbin Chen <[email protected]>
Diffstat (limited to 'libavcodec/x86/opusdsp_init.c')
0 files changed, 0 insertions, 0 deletions