You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
vfwcap: actually use framerate option
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
0c9cba24b7
commit
0a333001a2
@@ -314,6 +314,11 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
|||||||
|
|
||||||
dump_bih(s, &bi->bmiHeader);
|
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) {
|
if (ctx->video_size) {
|
||||||
ret = av_parse_video_size(&bi->bmiHeader.biWidth, &bi->bmiHeader.biHeight, ctx->video_size);
|
ret = av_parse_video_size(&bi->bmiHeader.biWidth, &bi->bmiHeader.biHeight, ctx->video_size);
|
||||||
|
Reference in New Issue
Block a user