diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-05-25 08:14:13 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-27 08:31:16 +0200 |
commit | fa4924a35818b2564050119ed7c14cbdd2b56065 (patch) | |
tree | f63b4545f25fd2a7e48e3b48ef8d523eee6a7fda /libavformat/rawdec.h | |
parent | 4779f59378d54f30644ef79ce3a5c402546f3cb9 (diff) | |
download | ffmpeg-fa4924a35818b2564050119ed7c14cbdd2b56065.tar.gz |
rawdec: factor video demuxer definitions into a macro.
Diffstat (limited to 'libavformat/rawdec.h')
-rw-r--r-- | libavformat/rawdec.h | 12 |
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 */ |