From f6d1b18b3d58cd8f06eea653c4a6e22e4b9245e6 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 6 Jul 2019 11:32:48 +0200 Subject: 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 --- libavformat/dtsdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavformat/dtsdec.c') diff --git a/libavformat/dtsdec.c b/libavformat/dtsdec.c index 8ec7925c59..ab59a56dfc 100644 --- a/libavformat/dtsdec.c +++ b/libavformat/dtsdec.c @@ -127,6 +127,7 @@ static int dts_probe(const AVProbeData *p) return 0; } +FF_RAW_DEMUXER_CLASS(dts) AVInputFormat ff_dts_demuxer = { .name = "dts", .long_name = NULL_IF_CONFIG_SMALL("raw DTS"), @@ -136,4 +137,5 @@ AVInputFormat ff_dts_demuxer = { .flags = AVFMT_GENERIC_INDEX, .extensions = "dts", .raw_codec_id = AV_CODEC_ID_DTS, -}; + .priv_data_size = sizeof(FFRawDemuxerContext), + .priv_class = &dts_demuxer_class,}; -- cgit v1.2.3