diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-06-07 16:13:33 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-07-08 16:03:18 +0200 |
commit | 6a055bf03612a67280e1188b269d2fa6cb08d3e7 (patch) | |
tree | 32d0241612285cf46dc451fb5a70281f8198958b /libavformat/mlpdec.c | |
parent | 168565ce44308451a50b3ece731727988e0f2389 (diff) |
avformat/rawdec: Deduplicate AVClasses based upon ff_raw_options
The child_class_next API relied on different (de)muxers to use
different AVClasses; yet this API has been replaced by
child_class_iterate.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mlpdec.c')
-rw-r--r-- | libavformat/mlpdec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/mlpdec.c b/libavformat/mlpdec.c index 6f2ba5d874..8f0aabb510 100644 --- a/libavformat/mlpdec.c +++ b/libavformat/mlpdec.c @@ -56,7 +56,6 @@ static int mlp_probe(const AVProbeData *p) return mlp_thd_probe(p, 0xf8726fbb); } -FF_RAW_DEMUXER_CLASS(mlp) const AVInputFormat ff_mlp_demuxer = { .name = "mlp", .long_name = NULL_IF_CONFIG_SMALL("raw MLP"), @@ -67,7 +66,7 @@ const AVInputFormat ff_mlp_demuxer = { .extensions = "mlp", .raw_codec_id = AV_CODEC_ID_MLP, .priv_data_size = sizeof(FFRawDemuxerContext), - .priv_class = &mlp_demuxer_class, + .priv_class = &ff_raw_demuxer_class, }; #endif @@ -77,7 +76,6 @@ static int thd_probe(const AVProbeData *p) return mlp_thd_probe(p, 0xf8726fba); } -FF_RAW_DEMUXER_CLASS(truehd) const AVInputFormat ff_truehd_demuxer = { .name = "truehd", .long_name = NULL_IF_CONFIG_SMALL("raw TrueHD"), @@ -88,7 +86,7 @@ const AVInputFormat ff_truehd_demuxer = { .extensions = "thd", .raw_codec_id = AV_CODEC_ID_TRUEHD, .priv_data_size = sizeof(FFRawDemuxerContext), - .priv_class = &truehd_demuxer_class, + .priv_class = &ff_raw_demuxer_class, }; #endif |