Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-25 10:14:13 +0400
committerAnton Khirnov <anton@khirnov.net>2011-05-27 10:31:16 +0400
commitfa4924a35818b2564050119ed7c14cbdd2b56065 (patch)
treef63b4545f25fd2a7e48e3b48ef8d523eee6a7fda /libavformat/rawdec.h
parent4779f59378d54f30644ef79ce3a5c402546f3cb9 (diff)
rawdec: factor video demuxer definitions into a macro.
Diffstat (limited to 'libavformat/rawdec.h')
-rw-r--r--libavformat/rawdec.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/rawdec.h b/libavformat/rawdec.h
index 517efd4042..99beadd0e1 100644
--- a/libavformat/rawdec.h
+++ b/libavformat/rawdec.h
@@ -47,4 +47,16 @@ int ff_raw_audio_read_header(AVFormatContext *s, AVFormatParameters *ap);
int ff_raw_video_read_header(AVFormatContext *s, AVFormatParameters *ap);
+#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)\
+AVInputFormat ff_ ## shortname ## _demuxer = {\
+ .name = #shortname,\
+ .long_name = NULL_IF_CONFIG_SMALL(longname),\
+ .read_probe = probe,\
+ .read_header = ff_raw_video_read_header,\
+ .read_packet = ff_raw_read_partial_packet,\
+ .extensions = ext,\
+ .flags = AVFMT_GENERIC_INDEX,\
+ .value = id,\
+};
+
#endif /* AVFORMAT_RAWDEC_H */