Skip to content
Snippets Groups Projects
Commit f9b4eef4 authored by Nicolas George's avatar Nicolas George Committed by Carl Eugen Hoyos
Browse files

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
parent 4c3267aa
No related branches found
No related tags found
No related merge requests found
......@@ -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 ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment