Browse Source

- 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
tags/v0.5
Juanjo 23 years ago
parent
commit
90da4d764c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ffmpeg.c

+ 2
- 0
ffmpeg.c View File

@@ -2171,6 +2171,8 @@ void prepare_grab(void)
if (has_video) { if (has_video) {
ic = av_open_input_file("", "video_grab_device", 0, ap); 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) { if (!ic) {
fprintf(stderr, "Could not open video grab device\n"); fprintf(stderr, "Could not open video grab device\n");
exit(1); exit(1);


Loading…
Cancel
Save