avformat/flacdec, takdec: Use FFRawDemuxerContext directly
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 7 Jun 2021 17:49:20 +0000 (19:49 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 8 Jul 2021 14:03:17 +0000 (16:03 +0200)
commit779dba0fc0f16cf4ddceba0b6527301889b58ccf
tree9a3ea2d1cb442f436507cfdb1e97a2f164c8e1c1
parentcd564ee547de3ffee1764e9c3bbc055556af2482
avformat/flacdec, takdec: Use FFRawDemuxerContext directly

The beginning of the private contexts of both the FLAC and the TAK
demuxer currently mimick FFRawDemuxerContext: A pointer to an AVClass
followed by the AVOpt-enabled field raw_packet_size. Said field is only
used by the demuxers' read_packet functions via
ff_raw_read_partial_packet(), which treats the private context as an
FFRaawDemuxerContext. Yet this is fragile, so better include a
FFRawDemuxerContext struct at the beginning of said demuxers' private
contexts.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavformat/flacdec.c
libavformat/takdec.c