aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-05-11 23:27:14 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-05-11 23:27:14 +0000
commita5dc85efb83a891070eb5f7a8f24834539fdf5df (patch)
treec919bbe12ce60636e7fefeb09459d2852b769c09 /ffmpeg.c
parent7434ba6d53b9a8858a6f965d9a4e60b5eb1316fe (diff)
downloadffmpeg-a5dc85efb83a891070eb5f7a8f24834539fdf5df.tar.gz
- Bug fix in map stream parser
Originally committed as revision 483 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 9990aef543..6a5b74af6d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -489,8 +489,12 @@ static void do_video_out(AVFormatContext *s,
ret = avcodec_encode_video(enc,
video_buffer, sizeof(video_buffer),
picture);
+ //enc->frame_number = enc->r_pict_num;
s->format->write_packet(s, ost->index, video_buffer, ret, 0);
*frame_size = ret;
+ //fprintf(stderr,"\nFrame: %3d %3d size: %5d type: %d",
+ // enc->frame_number-1, enc->r_pict_num, ret,
+ // enc->pict_type);
} else {
write_picture(s, ost->index, picture, enc->pix_fmt, enc->width, enc->height);
}
@@ -1466,7 +1470,8 @@ void opt_map(const char *arg)
m->file_index = strtol(arg, (char **)&p, 0);
if (*p)
p++;
- m->stream_index = strtol(arg, (char **)&p, 0);
+
+ m->stream_index = strtol(p, (char **)&p, 0);
}
void opt_recording_time(const char *arg)