summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-05-15 02:02:24 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-05-15 02:02:24 +0000
commit90da4d764ca09d0d6fbf46171307f0abe689a617 (patch)
tree886dbf3053313a5da00048ac24ac5d79a37b4775 /ffmpeg.c
parent6dc96cb0bfb6f92f4f91b5f3406a44330a288444 (diff)
- 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
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
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);