Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-04-16 00:40:19 +0300
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-04-18 21:26:44 +0300
commit9d6c1687642cf9f24f6611463afdd72fdf5d3e50 (patch)
tree052dee80417d38932dcc0dfaf9fa3b922f8d0218 /libavdevice/vfwcap.c
parent396c019795677659613900dd04a7708428756906 (diff)
lavd/vfwcap: Pass pointers to int instead of long to av_parse_video_size().
Fixes the following warnings: libavdevice/vfwcap.c:331:35: warning: passing argument 1 of 'av_parse_video_size' from incompatible pointer type libavdevice/vfwcap.c:331:59: warning: passing argument 2 of 'av_parse_video_size' from incompatible pointer type Reported-by: Reino Wijnsma
Diffstat (limited to 'libavdevice/vfwcap.c')
-rw-r--r--libavdevice/vfwcap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 6a923d9957..e2ab276c2e 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -328,11 +328,14 @@ static int vfw_read_header(AVFormatContext *s)
}
if (ctx->video_size) {
- ret = av_parse_video_size(&bi->bmiHeader.biWidth, &bi->bmiHeader.biHeight, ctx->video_size);
+ int w, h;
+ ret = av_parse_video_size(&w, &h, ctx->video_size);
if (ret < 0) {
av_log(s, AV_LOG_ERROR, "Couldn't parse video size.\n");
goto fail;
}
+ bi->bmiHeader.biWidth = w;
+ bi->bmiHeader.biHeight = h;
}
if (0) {