diff options
author | Zhao Zhili <[email protected]> | 2025-09-13 12:26:08 +0800 |
---|---|---|
committer | Zhao Zhili <[email protected]> | 2025-09-14 21:35:54 +0800 |
commit | 0773343ed769d4b14d58803cf2957223f93e1b4f (patch) | |
tree | 09ded8a6fe0e8da6f8d98e6a1d7e82a29e981561 /libavfilter/vsrc_gfxcapture_winrt.hpp | |
parent | 6e63b978d32ea3449a7dbb47e9eb7c8ad00af30d (diff) |
avcodec/rkmppdec: fix input queue overflow
The strategy to count free slots isn't reliable. The value of
INPUT_MAX_PACKETS is a hardcoded value, and MPP_DEC_GET_STREAM_COUNT
doesn't always work as expected. When freeslots is nonzero, the mpp
decoder still returns MPP_ERR_BUFFER_FULL. Before this patch, all
packets are dropped once went into MPP_ERR_BUFFER_FULL state.
Don't drop packet and return error in MPP_ERR_BUFFER_FULL state.
Receive frame to allow the decoder's state machine to resume.
Signed-off-by: Zhao Zhili <[email protected]>
Diffstat (limited to 'libavfilter/vsrc_gfxcapture_winrt.hpp')
0 files changed, 0 insertions, 0 deletions