diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-06 11:32:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-17 23:18:50 +0200 |
commit | f6d1b18b3d58cd8f06eea653c4a6e22e4b9245e6 (patch) | |
tree | e9a30637682f6f1c265fbdaebd4df79fd823e453 /libavformat/mlpdec.c | |
parent | 827faa18cfd08eed49ffff9129ef4378b8ccf5a5 (diff) |
avformat/rawdec: Make the raw packet size configurable
This allows testing parsers with a wider range of input packet sizes.
Which is important and usefull for regression testing, some of our
parsers in fact to not work if the packet size is changed from 1024
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mlpdec.c')
-rw-r--r-- | libavformat/mlpdec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/mlpdec.c b/libavformat/mlpdec.c index e210d7d52e..40b1833761 100644 --- a/libavformat/mlpdec.c +++ b/libavformat/mlpdec.c @@ -56,6 +56,7 @@ static int mlp_probe(const AVProbeData *p) return mlp_thd_probe(p, 0xf8726fbb); } +FF_RAW_DEMUXER_CLASS(mlp) AVInputFormat ff_mlp_demuxer = { .name = "mlp", .long_name = NULL_IF_CONFIG_SMALL("raw MLP"), @@ -65,6 +66,8 @@ AVInputFormat ff_mlp_demuxer = { .flags = AVFMT_GENERIC_INDEX | AVFMT_NOTIMESTAMPS, .extensions = "mlp", .raw_codec_id = AV_CODEC_ID_MLP, + .priv_data_size = sizeof(FFRawDemuxerContext), + .priv_class = &mlp_demuxer_class, }; #endif @@ -74,6 +77,7 @@ static int thd_probe(const AVProbeData *p) return mlp_thd_probe(p, 0xf8726fba); } +FF_RAW_DEMUXER_CLASS(truehd) AVInputFormat ff_truehd_demuxer = { .name = "truehd", .long_name = NULL_IF_CONFIG_SMALL("raw TrueHD"), @@ -83,6 +87,8 @@ AVInputFormat ff_truehd_demuxer = { .flags = AVFMT_GENERIC_INDEX | AVFMT_NOTIMESTAMPS, .extensions = "thd", .raw_codec_id = AV_CODEC_ID_TRUEHD, + .priv_data_size = sizeof(FFRawDemuxerContext), + .priv_class = &truehd_demuxer_class, }; #endif |