diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2011-09-02 01:33:07 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-06 21:12:45 +0200 |
commit | 0a333001a216d79b1b74f6620d66be188162f872 (patch) | |
tree | 1eee7434177ed07d1b63c8e3a122c1b398b6d0fb /libavdevice/vfwcap.c | |
parent | 0c9cba24b7c1ef80078c500b44a6bc4788e8fd5b (diff) | |
download | ffmpeg-0a333001a216d79b1b74f6620d66be188162f872.tar.gz |
vfwcap: actually use framerate option
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/vfwcap.c')
-rw-r--r-- | libavdevice/vfwcap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index 6f42f9e2b6..e5ecf84c24 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -314,6 +314,11 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap) dump_bih(s, &bi->bmiHeader); + ret = av_parse_video_rate(&framerate_q, ctx->framerate); + if (ret < 0) { + av_log(s, AV_LOG_ERROR, "Could not parse framerate '%s'.\n", ctx->framerate); + goto fail; + } if (ctx->video_size) { ret = av_parse_video_size(&bi->bmiHeader.biWidth, &bi->bmiHeader.biHeight, ctx->video_size); |