Commit f760e19f authored by pulento's avatar pulento

- Bug fix in map stream parser


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@483 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d9851948
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment