mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/rawdec: add FF_DEF_RAWVIDEO_DEMUXER2, which allows specifying the flags
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2351ea8a2e
commit
65571ee4e3
@ -49,7 +49,7 @@ static const AVClass name ## _demuxer_class = {\
|
||||
.version = LIBAVUTIL_VERSION_INT,\
|
||||
};
|
||||
|
||||
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)\
|
||||
#define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)\
|
||||
FF_RAWVIDEO_DEMUXER_CLASS(shortname)\
|
||||
AVInputFormat ff_ ## shortname ## _demuxer = {\
|
||||
.name = #shortname,\
|
||||
@ -58,10 +58,13 @@ AVInputFormat ff_ ## shortname ## _demuxer = {\
|
||||
.read_header = ff_raw_video_read_header,\
|
||||
.read_packet = ff_raw_read_partial_packet,\
|
||||
.extensions = ext,\
|
||||
.flags = AVFMT_GENERIC_INDEX,\
|
||||
.flags = flag,\
|
||||
.raw_codec_id = id,\
|
||||
.priv_data_size = sizeof(FFRawVideoDemuxerContext),\
|
||||
.priv_class = &shortname ## _demuxer_class,\
|
||||
};
|
||||
|
||||
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)\
|
||||
FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, AVFMT_GENERIC_INDEX)
|
||||
|
||||
#endif /* AVFORMAT_RAWDEC_H */
|
||||
|
Loading…
Reference in New Issue
Block a user