[FFmpeg-cvslog] v4l2: fix uninitialized variable
Michael Niedermayer
git at videolan.org
Tue Nov 22 02:38:09 CET 2011
ffmpeg | branch: oldabi | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 8 01:20:35 2011 +0100| [e5578ad3cd96211f48d3d3ed4894f15f82045c1d] | committer: Michael Niedermayer
v4l2: fix uninitialized variable
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e5578ad3cd96211f48d3d3ed4894f15f82045c1d
---
libavdevice/v4l2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 7223654..163a4cd 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -439,7 +439,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 fps;
+ AVRational fps={0};
streamparm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
More information about the ffmpeg-cvslog
mailing list