[FFmpeg-cvslog] v4l2: fix uninitialized variable
Michael Niedermayer
git at videolan.org
Tue Nov 8 01:23:38 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 8 01:20:35 2011 +0100| [5955c63c36e9b822f1186cd45a8dec5056b9c575] | 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=5955c63c36e9b822f1186cd45a8dec5056b9c575
---
libavdevice/v4l2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 85666f5..08ee201 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list