# HG changeset patch # User cigaes # Date 1288360346 0 # Node ID 2f95644eb8cb0338cf04a68b381d6464b979b800 # Parent af9ef007bec6b106c4b41ee487b49220275708ce Support for -force-key-frames for ve_lavc. diff -r af9ef007bec6 -r 2f95644eb8cb DOCS/man/en/mplayer.1 --- a/DOCS/man/en/mplayer.1 Fri Oct 29 13:50:05 2010 +0000 +++ b/DOCS/man/en/mplayer.1 Fri Oct 29 13:52:26 2010 +0000 @@ -8014,6 +8014,8 @@ need to use the fixpts filter for this option to work. .sp 1 Not all codecs support forced key frames. +Currently, support is only implemented for the following encoders: +lavc. . . . diff -r af9ef007bec6 -r 2f95644eb8cb libmpcodecs/ve_lavc.c --- a/libmpcodecs/ve_lavc.c Fri Oct 29 13:50:05 2010 +0000 +++ b/libmpcodecs/ve_lavc.c Fri Oct 29 13:52:26 2010 +0000 @@ -45,6 +45,7 @@ #include "img_format.h" #include "fmt-conversion.h" #include "mp_image.h" +#include "ve.h" #include "vf.h" #include "vd_ffmpeg.h" @@ -772,6 +773,7 @@ pic->linesize[0]=mpi->stride[0]; pic->linesize[1]=mpi->stride[1]; pic->linesize[2]=mpi->stride[2]; + pic->pict_type = is_forced_key_frame(pts) ? FF_I_TYPE : 0; if(lavc_param_interlaced_dct){ if((mpi->fields & MP_IMGFIELD_ORDERED) && (mpi->fields & MP_IMGFIELD_INTERLACED))