FFmpeg: VideoFrameEncoder - fix unit test hang with libx265
libx265 produces garbage negative DTS with single-frame encodes. Clamp
to PTS (or 0) to prevent corrupt output that makes playback hang.
This fixes unit tests when building against homebrew-provided FFmpeg.
Pick-to: 6.12
Change-Id: I7aca0ca2ad5e18331236c22a368d281637193432
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | ec433a64c953b433f6b61d272382e7a12c5cd7e5 |
| parent | e022436f09aef383a23ae75890683abc6477fe30 |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Thu, 13 Aug 2026 06:23:07 +0000 |