Commit 767ac593 authored by pulento's avatar pulento

- Bug fix for AVStream->r_frame_rate not being initialized for live video

capture.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@499 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dc92958c
......@@ -2171,6 +2171,8 @@ void prepare_grab(void)
if (has_video) {
ic = av_open_input_file("", "video_grab_device", 0, ap);
/* by now video grab has one stream */
ic->streams[0]->r_frame_rate = ap->frame_rate;
if (!ic) {
fprintf(stderr, "Could not open video grab device\n");
exit(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment