summaryrefslogtreecommitdiff
path: root/libavformat/g722.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/g722.c
parent827faa18cfd08eed49ffff9129ef4378b8ccf5a5 (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/g722.c')
-rw-r--r--libavformat/g722.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/g722.c b/libavformat/g722.c
index 2feec01211..fe8c4ae7bb 100644
--- a/libavformat/g722.c
+++ b/libavformat/g722.c
@@ -46,6 +46,7 @@ static int g722_read_header(AVFormatContext *s)
return 0;
}
+FF_RAW_DEMUXER_CLASS(g722)
AVInputFormat ff_g722_demuxer = {
.name = "g722",
.long_name = NULL_IF_CONFIG_SMALL("raw G.722"),
@@ -54,4 +55,5 @@ AVInputFormat ff_g722_demuxer = {
.flags = AVFMT_GENERIC_INDEX,
.extensions = "g722,722",
.raw_codec_id = AV_CODEC_ID_ADPCM_G722,
-};
+ .priv_data_size = sizeof(FFRawDemuxerContext),
+ .priv_class = &g722_demuxer_class,};