summaryrefslogtreecommitdiffstats
path: root/libavformat/rawdec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-10 14:20:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-10 14:20:39 +0200
commit65571ee4e3c7b7d84783b3660459161bfd5837c3 (patch)
tree9aeb1a951bf3b821633250dac323a9e39f9a5e46 /libavformat/rawdec.h
parent2351ea8a2e8c1ce74c87c8d48494dc2dd4b53ded (diff)
downloadffmpeg-streaming-65571ee4e3c7b7d84783b3660459161bfd5837c3.zip
ffmpeg-streaming-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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/rawdec.h b/libavformat/rawdec.h
index 5910855..328a4fb 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 */
OpenPOWER on IntegriCloud