mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-28 02:34:19 -05:00
AVC and AV1 encoders in AMF that support B-frames were incrementing `dts_offset` even when B-frames were set to 0. For AVC, adjust the `dts_offset` only when B-frames are supported and are greater than 0, and clamp to maximum supported. For AV1, remove the dts_offset code completely because it is being ignored anyway. AV1 handles B-frames and offsets differently; refer to [1] for details. [1]: https://github.com/obsproject/obs-studio/pull/10996