diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-12-24 13:04:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-12-24 13:04:26 +0000 |
commit | 18531e52331becf277cc16bab7eaecfe9cbac885 (patch) | |
tree | a2eb518bc9529254c4df709dd74403eeefdb0a8b /ffmpeg.c | |
parent | a46a7052bc20b630dae19148584941ced5ae78d6 (diff) | |
download | ffmpeg-18531e52331becf277cc16bab7eaecfe9cbac885.tar.gz |
fix segfault with -vcodec copy
Originally committed as revision 1360 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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++; |