[FFmpeg-cvslog] r25550 - trunk/libavcodec/libxvidff.c
cehoyos
subversion
Fri Oct 22 20:01:49 CEST 2010
Author: cehoyos
Date: Fri Oct 22 20:01:48 2010
New Revision: 25550
Log:
Use forced key frames when encoding with libxvid.
Patch by Nicolas George, nicolas D george A normalesup D org
Modified:
trunk/libavcodec/libxvidff.c
Modified: trunk/libavcodec/libxvidff.c
==============================================================================
--- trunk/libavcodec/libxvidff.c Fri Oct 22 04:25:26 2010 (r25549)
+++ trunk/libavcodec/libxvidff.c Fri Oct 22 20:01:48 2010 (r25550)
@@ -449,7 +449,11 @@ static int xvid_encode_frame(AVCodecCont
xvid_enc_frame.vop_flags = x->vop_flags;
xvid_enc_frame.vol_flags = x->vol_flags;
xvid_enc_frame.motion = x->me_flags;
- xvid_enc_frame.type = XVID_TYPE_AUTO;
+ xvid_enc_frame.type =
+ picture->pict_type == FF_I_TYPE ? XVID_TYPE_IVOP :
+ picture->pict_type == FF_P_TYPE ? XVID_TYPE_PVOP :
+ picture->pict_type == FF_B_TYPE ? XVID_TYPE_BVOP :
+ XVID_TYPE_AUTO;
/* Pixel aspect ratio setting */
if (avctx->sample_aspect_ratio.num < 1 || avctx->sample_aspect_ratio.num > 255 ||
More information about the ffmpeg-cvslog
mailing list