aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2003-04-23 02:04:40 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2003-04-23 02:04:40 +0000
commite738cee9c4feb258d57bf4b4975e12f561f9eb4f (patch)
tree79472f1f6c6ac8cfb038f42f7920276281a0f572 /ffmpeg.c
parent80097bbf712ca2f577b375d6ba94e3957b2c2e78 (diff)
downloadffmpeg-e738cee9c4feb258d57bf4b4975e12f561f9eb4f.tar.gz
Complete support for OpenDML AVIs and AVIs > 2Gb.
Originally committed as revision 1814 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a520155c05..b24de887dd 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1363,9 +1363,9 @@ static int av_encode(AVFormatContext **output_files,
/* 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;
+ avframe.key_frame = pkt.flags & PKT_FLAG_KEY;
av_write_frame(os, ost->index, data_buf, data_size);
ost->st->codec.frame_number++;