summaryrefslogtreecommitdiff
path: root/libavformat/v4l2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/v4l2.c')
-rw-r--r--libavformat/v4l2.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavformat/v4l2.c b/libavformat/v4l2.c
index f9059a18bc..009ca9fc95 100644
--- a/libavformat/v4l2.c
+++ b/libavformat/v4l2.c
@@ -522,7 +522,7 @@ static int v4l2_read_close(AVFormatContext *s1)
return 0;
}
-static AVInputFormat v4l2_demuxer = {
+AVInputFormat v4l2_demuxer = {
"video4linux2",
"video grab",
sizeof(struct video_data),
@@ -532,9 +532,3 @@ static AVInputFormat v4l2_demuxer = {
v4l2_read_close,
.flags = AVFMT_NOFILE,
};
-
-int v4l2_init(void)
-{
- av_register_input_format(&v4l2_demuxer);
- return 0;
-}