[SCM] libav/experimental: Use forced key frames when encoding with libxvid.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:18:00 UTC 2013
The following commit has been merged in the experimental branch:
commit f9b4eef457dde49f1297f32a02f443cf9e1bc481
Author: Nicolas George <nicola.george at normalesup.org>
Date: Fri Oct 22 18:01:48 2010 +0000
Use forced key frames when encoding with libxvid.
Patch by Nicolas George, nicolas D george A normalesup D org
Originally committed as revision 25550 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index f8aeb9c..f527354 100644
--- a/libavcodec/libxvidff.c
+++ b/libavcodec/libxvidff.c
@@ -449,7 +449,11 @@ static int xvid_encode_frame(AVCodecContext *avctx,
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 ||
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list