summaryrefslogtreecommitdiff
path: root/libavformat/dnxhddec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-25 08:14:13 +0200
committerAnton Khirnov <anton@khirnov.net>2011-05-27 08:31:16 +0200
commitfa4924a35818b2564050119ed7c14cbdd2b56065 (patch)
treef63b4545f25fd2a7e48e3b48ef8d523eee6a7fda /libavformat/dnxhddec.c
parent4779f59378d54f30644ef79ce3a5c402546f3cb9 (diff)
rawdec: factor video demuxer definitions into a macro.
Diffstat (limited to 'libavformat/dnxhddec.c')
-rw-r--r--libavformat/dnxhddec.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavformat/dnxhddec.c b/libavformat/dnxhddec.c
index df5d2e3867..2aa8017ad4 100644
--- a/libavformat/dnxhddec.c
+++ b/libavformat/dnxhddec.c
@@ -42,13 +42,4 @@ static int dnxhd_probe(AVProbeData *p)
return AVPROBE_SCORE_MAX;
}
-AVInputFormat ff_dnxhd_demuxer = {
- "dnxhd",
- NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"),
- 0,
- dnxhd_probe,
- ff_raw_video_read_header,
- ff_raw_read_partial_packet,
- .flags= AVFMT_GENERIC_INDEX,
- .value = CODEC_ID_DNXHD,
-};
+FF_DEF_RAWVIDEO_DEMUXER(dnxhd, "raw DNxHD (SMPTE VC-3)", dnxhd_probe, NULL, CODEC_ID_DNXHD)