ffmpeg: link the symbol stubs into the ffmpeg unit tests


A stubbed FFmpeg build carries unresolved references into OpenSSL and
VAAPI. FindFFmpeg.cmake deliberately keeps the stub libraries out of
the FFmpeg::av* link interface, so nothing provides those symbols to
consumers.

* explicitly link the stubs in qt_internal_multimedia_link_ffmpeg_stubs
when LINK_FFMPEG_STUBS is given
* link with --no-as-needed to force linking the symbols stubs into the
binaries.

Fixes: QTBUG-133914
Pick-to: 6.12
Change-Id: I43890a1890b8d61fe929e02a7fe7058b27913d0b
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
commitc78942898ef2f5ac290b24ad1a6a0f8e3746f5d2
parentc33f48609918c3be7b67a85076c015519606e5b7
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeTue, 25 Aug 2026 12:01:11 +0000