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/flacdec.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/flacdec.c')
-rw-r--r-- | libavformat/flacdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c index ea803f57dd..8394e47483 100644 --- a/libavformat/flacdec.c +++ b/libavformat/flacdec.c @@ -31,6 +31,8 @@ #define SEEKPOINT_SIZE 18 typedef struct FLACDecContext { + AVClass *class; + int raw_packet_size; int found_seektable; } FLACDecContext; @@ -327,6 +329,7 @@ static int flac_seek(AVFormatContext *s, int stream_index, int64_t timestamp, in return -1; } +FF_RAW_DEMUXER_CLASS(flac) AVInputFormat ff_flac_demuxer = { .name = "flac", .long_name = NULL_IF_CONFIG_SMALL("raw FLAC"), @@ -339,4 +342,5 @@ AVInputFormat ff_flac_demuxer = { .extensions = "flac", .raw_codec_id = AV_CODEC_ID_FLAC, .priv_data_size = sizeof(FLACDecContext), + .priv_class = &flac_demuxer_class, }; |