v4l2: fix uninitialized variable
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Nov 2011 00:20:35 +0000 (01:20 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Nov 2011 00:20:35 +0000 (01:20 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/v4l2.c

index 85666f5..08ee201 100644 (file)
@@ -464,7 +464,7 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
     struct v4l2_streamparm streamparm = {0};
     struct v4l2_fract *tpf = &streamparm.parm.capture.timeperframe;
     int i, ret;
-    AVRational framerate_q;
+    AVRational framerate_q={0};
 
     streamparm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;