Browse code

v4l2: fix uninitialized variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/11/08 09:20:35
Showing 1 changed files
... ...
@@ -439,7 +439,7 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
439 439
     struct v4l2_streamparm streamparm = {0};
440 440
     struct v4l2_fract *tpf = &streamparm.parm.capture.timeperframe;
441 441
     int i, ret;
442
-    AVRational fps;
442
+    AVRational fps={0};
443 443
 
444 444
     streamparm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
445 445