diff options
author | Juanjo <pulento@users.sourceforge.net> | 2002-05-15 02:02:24 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2002-05-15 02:02:24 +0000 |
commit | 90da4d764ca09d0d6fbf46171307f0abe689a617 (patch) | |
tree | 886dbf3053313a5da00048ac24ac5d79a37b4775 | |
parent | 6dc96cb0bfb6f92f4f91b5f3406a44330a288444 (diff) | |
download | ffmpeg-90da4d764ca09d0d6fbf46171307f0abe689a617.tar.gz |
- 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
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |