From 90da4d764ca09d0d6fbf46171307f0abe689a617 Mon Sep 17 00:00:00 2001 From: Juanjo Date: Wed, 15 May 2002 02:02:24 +0000 Subject: [PATCH] - Bug fix for AVStream->r_frame_rate not being initialized for live video capture. Originally committed as revision 499 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 20428aa9c4..8d8eae85ed 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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);