[09/17,RFC] vfwcap: Initialize framerate value

Message ID 1408133595-22316-10-git-send-email-diego@biurrun.de
State New
Headers show

Commit Message

Diego Biurrun Aug. 15, 2014, 8:13 p.m.
Otherwise the framerate is used uninitialized.
---

This is surely not the right solution, but the code currently looks very wrong.

 libavdevice/vfwcap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index c067be3..420fdb4 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -242,7 +242,7 @@  static int vfw_read_header(AVFormatContext *s)
     DWORD biCompression;
     WORD biBitCount;
     int ret;
-    AVRational framerate_q;
+    AVRational framerate_q = { 1, 1 };
 
     if (!strcmp(s->filename, "list")) {
         for (devnum = 0; devnum <= 9; devnum++) {