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>