The variable is used for containing the parsed value of framerate,
using a lexically consistent name ease readability/understanding.
---
libavdevice/vfwcap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 5dd873b..f04f28c 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -252,7 +252,7 @@ static int vfw_read_header(AVFormatContext *s,
AVFormatParameters *ap)
DWORD biCompression;
WORD biBitCount;
int ret;
- AVRational fps;
+ AVRational framerate_q;
if (!strcmp(s->filename, "list")) {
for (devnum = 0; devnum <= 9; devnum++) {
@@ -272,7 +272,7 @@ static int vfw_read_header(AVFormatContext *s,
AVFormatParameters *ap)
#if FF_API_FORMAT_PARAMETERS
if (ap->time_base.num)
- fps = (AVRational){ap->time_base.den, ap->time_base.num};
+ framerate_q = (AVRational){ap->time_base.den, ap->time_base.num};
#endif
ctx->hwnd = capCreateCaptureWindow(NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, 0);
@@ -372,7 +372,7 @@ static int vfw_read_header(AVFormatContext *s,
AVFormatParameters *ap)
cparms.fYield = 1; // Spawn a background thread
cparms.dwRequestMicroSecPerFrame =
- (fps.den*1000000) / fps.num;
+ (framerate_q.den*1000000) / framerate_q.num;
cparms.fAbortLeftMouse = 0;
cparms.fAbortRightMouse = 0;
cparms.fCaptureAudio = 0;
@@ -384,7 +384,7 @@ static int vfw_read_header(AVFormatContext *s,
AVFormatParameters *ap)
goto fail_io;
codec = st->codec;
- codec->time_base = (AVRational){fps.den, fps.num};
+ codec->time_base = (AVRational){framerate_q.den, framerate_q.num};
codec->codec_type = AVMEDIA_TYPE_VIDEO;
codec->width = bi->bmiHeader.biWidth;
codec->height = bi->bmiHeader.biHeight;
--
1.7.2.3
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel