-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AV1e/lib] Fix AV1 CQP reset buffer not enough issue (#6340)
In most of CQP/ICQ cases, user will set BufferSizeInKB field as 0 for first Init as these two modes doesn't require VBV buffer size input. But in reset usages, app might repeatly calls GetVideoParam and Reset for CQP/ICQ cases. And BufferSizeInKB returned from GetVideoParam() will be used in 2nd, 3rd Init... And for temporal unit cache concerns, BufferSizeInKB (recommended bitstream buffer size) is multiplied by the number of cached frames in RAB cases. In these cases, BufferSizeInKB might be multiplied and increased for each reset, and bitstream buffer size check might fail and returns MFX_ERR_NOT_ENOUGH_BUFFER. This commit moves buffer size multiplication to required BufferSize calculation for CQP/ICQ, instead of multplication in GetVideoParam to fix the mentioned issue. Co-authored-by: Xue, Maxim <[email protected]>
- Loading branch information
1 parent
90dfeac
commit e1b0327
Showing
4 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters