Commit 63e1ba90 authored by michaelni's avatar michaelni

fix segfault with -vcodec copy


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1360 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1229b29a
......@@ -1400,8 +1400,15 @@ static int av_encode(AVFormatContext **output_files,
av_abort();
}
} else {
AVFrame avframe;
/* no reencoding needed : output the packet directly */
/* force the input stream PTS */
//XXX/FIXME set keyframe flag from demuxer (or optionally from decoder)
memset(&avframe, 0, sizeof(AVFrame));
ost->st->codec.coded_frame= &avframe;
av_write_frame(os, ost->index, data_buf, data_size);
ost->st->codec.frame_number++;
ost->frame_number++;
......
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