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:
authorLukasz Marek <lukasz.m.luki@gmail.com>2014-02-23 02:32:51 +0400
committerLukasz Marek <lukasz.m.luki@gmail.com>2014-03-04 02:34:46 +0400
commitf607767d93b7c277585332f85f9d75ad85221979 (patch)
treea0f4b76634ff9068426121d7514b957293af44f6 /libavdevice/v4l2enc.c
parent19b3a25048d956622ebcc26b722a0a5c5155553f (diff)
lavd: add categories to device implementations
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice/v4l2enc.c')
-rw-r--r--libavdevice/v4l2enc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavdevice/v4l2enc.c b/libavdevice/v4l2enc.c
index 21f0ef6983..efe08b589e 100644
--- a/libavdevice/v4l2enc.c
+++ b/libavdevice/v4l2enc.c
@@ -97,6 +97,13 @@ static int write_trailer(AVFormatContext *s1)
return 0;
}
+static const AVClass v4l2_class = {
+ .class_name = "V4L2 outdev",
+ .item_name = av_default_item_name,
+ .version = LIBAVUTIL_VERSION_INT,
+ .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
+};
+
AVOutputFormat ff_v4l2_muxer = {
.name = "v4l2",
.long_name = NULL_IF_CONFIG_SMALL("Video4Linux2 output device"),
@@ -107,4 +114,5 @@ AVOutputFormat ff_v4l2_muxer = {
.write_packet = write_packet,
.write_trailer = write_trailer,
.flags = AVFMT_NOFILE,
+ .priv_class = &v4l2_class,
};