multimedia: add Ogg identification parsing to ParsingSupport


Ogg carries either Vorbis or Opus, which sniffCodec() could not tell
apart and always reported as Opus. oggStreamInfo() reads the
identification packet on the first page for the codec, sample rate and
channel count, locating the packet from the page's segment count rather
than a fixed offset.

The rate an Opus header carries is the encoder's input rate; Opus always
decodes at 48000 Hz, so callers must not treat it as the decoded rate.

This patch and its commit message were developed together with Claude

Change-Id: Icb258b80ee0adfe4f31b88ea47639fe3f5c61417
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commit971211a72f13919b9fb42f71ee407cce603a63ec
parent4f2721c7801bb5ad661c515f5a0190db40607a65
authorLorn Potter <lorn.potter@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeThu, 24 Sep 2026 02:06:13 +0000