summaryrefslogtreecommitdiff
path: root/libavformat/acm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-07-06 11:32:48 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-07-17 23:18:50 +0200
commitf6d1b18b3d58cd8f06eea653c4a6e22e4b9245e6 (patch)
treee9a30637682f6f1c265fbdaebd4df79fd823e453 /libavformat/acm.c
parent827faa18cfd08eed49ffff9129ef4378b8ccf5a5 (diff)
downloadffmpeg-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/acm.c')
-rw-r--r--libavformat/acm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/acm.c b/libavformat/acm.c
index 125352a8f6..5e03cf8bff 100644
--- a/libavformat/acm.c
+++ b/libavformat/acm.c
@@ -60,6 +60,7 @@ static int acm_read_header(AVFormatContext *s)
return 0;
}
+FF_RAW_DEMUXER_CLASS(acm)
AVInputFormat ff_acm_demuxer = {
.name = "acm",
.long_name = NULL_IF_CONFIG_SMALL("Interplay ACM"),
@@ -69,4 +70,6 @@ AVInputFormat ff_acm_demuxer = {
.flags = AVFMT_NOBINSEARCH | AVFMT_NOGENSEARCH | AVFMT_NO_BYTE_SEEK | AVFMT_NOTIMESTAMPS,
.extensions = "acm",
.raw_codec_id = AV_CODEC_ID_INTERPLAY_ACM,
+ .priv_data_size = sizeof(FFRawDemuxerContext),
+ .priv_class = &acm_demuxer_class,
};