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/ac3dec.c | |
parent | 827faa18cfd08eed49ffff9129ef4378b8ccf5a5 (diff) | |
download | ffmpeg-f6d1b18b3d58cd8f06eea653c4a6e22e4b9245e6.tar.gz |
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/ac3dec.c')
-rw-r--r-- | libavformat/ac3dec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/ac3dec.c b/libavformat/ac3dec.c index 3736b118d3..1f87939388 100644 --- a/libavformat/ac3dec.c +++ b/libavformat/ac3dec.c @@ -102,6 +102,7 @@ static int ac3_probe(const AVProbeData *p) return ac3_eac3_probe(p, AV_CODEC_ID_AC3); } +FF_RAW_DEMUXER_CLASS(ac3) AVInputFormat ff_ac3_demuxer = { .name = "ac3", .long_name = NULL_IF_CONFIG_SMALL("raw AC-3"), @@ -111,6 +112,8 @@ AVInputFormat ff_ac3_demuxer = { .flags= AVFMT_GENERIC_INDEX, .extensions = "ac3", .raw_codec_id = AV_CODEC_ID_AC3, + .priv_data_size = sizeof(FFRawDemuxerContext), + .priv_class = &ac3_demuxer_class, }; #endif @@ -120,6 +123,7 @@ static int eac3_probe(const AVProbeData *p) return ac3_eac3_probe(p, AV_CODEC_ID_EAC3); } +FF_RAW_DEMUXER_CLASS(eac3) AVInputFormat ff_eac3_demuxer = { .name = "eac3", .long_name = NULL_IF_CONFIG_SMALL("raw E-AC-3"), @@ -129,5 +133,7 @@ AVInputFormat ff_eac3_demuxer = { .flags = AVFMT_GENERIC_INDEX, .extensions = "eac3", .raw_codec_id = AV_CODEC_ID_EAC3, + .priv_data_size = sizeof(FFRawDemuxerContext), + .priv_class = &eac3_demuxer_class, }; #endif |