mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
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>
This commit is contained in:
parent
827faa18cf
commit
f6d1b18b3d
13 changed files with 69 additions and 5 deletions
|
|
@ -83,6 +83,7 @@ static int loas_read_header(AVFormatContext *s)
|
|||
return 0;
|
||||
}
|
||||
|
||||
FF_RAW_DEMUXER_CLASS(loas)
|
||||
AVInputFormat ff_loas_demuxer = {
|
||||
.name = "loas",
|
||||
.long_name = NULL_IF_CONFIG_SMALL("LOAS AudioSyncStream"),
|
||||
|
|
@ -91,4 +92,6 @@ AVInputFormat ff_loas_demuxer = {
|
|||
.read_packet = ff_raw_read_partial_packet,
|
||||
.flags= AVFMT_GENERIC_INDEX,
|
||||
.raw_codec_id = AV_CODEC_ID_AAC_LATM,
|
||||
.priv_data_size = sizeof(FFRawDemuxerContext),
|
||||
.priv_class = &loas_demuxer_class,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue