diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-10 14:20:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-10 14:20:39 +0200 |
commit | 65571ee4e3c7b7d84783b3660459161bfd5837c3 (patch) | |
tree | 9aeb1a951bf3b821633250dac323a9e39f9a5e46 /libavformat/rawdec.h | |
parent | 2351ea8a2e8c1ce74c87c8d48494dc2dd4b53ded (diff) | |
download | ffmpeg-65571ee4e3c7b7d84783b3660459161bfd5837c3.tar.gz |
avformat/rawdec: add FF_DEF_RAWVIDEO_DEMUXER2, which allows specifying the flags
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rawdec.h')
-rw-r--r-- | libavformat/rawdec.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/rawdec.h b/libavformat/rawdec.h index 59108559d3..328a4fbd49 100644 --- a/libavformat/rawdec.h +++ b/libavformat/rawdec.h @@ -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 */ |