[MPlayer-cvslog] r30790 - trunk/libmpcodecs/ve_x264.c
reimar
subversion at mplayerhq.hu
Sun Feb 28 08:52:34 CET 2010
Author: reimar
Date: Sun Feb 28 08:52:34 2010
New Revision: 30790
Log:
Reuse the keyframe flag from x264 instead of trying to derive it on our own.
Modified:
trunk/libmpcodecs/ve_x264.c
Modified: trunk/libmpcodecs/ve_x264.c
==============================================================================
--- trunk/libmpcodecs/ve_x264.c Sun Feb 28 08:45:23 2010 (r30789)
+++ trunk/libmpcodecs/ve_x264.c Sun Feb 28 08:52:34 2010 (r30790)
@@ -258,10 +258,7 @@ static int encode_frame(struct vf_instan
return -1;
}
if(i_size>0) {
- int keyframe = (pic_out.i_type == X264_TYPE_IDR) ||
- (pic_out.i_type == X264_TYPE_I
- && param.i_frame_reference == 1
- && !param.i_bframe);
+ int keyframe = pic_out.b_keyframe;
memcpy(mod->mux->buffer, nal->p_payload, i_size);
muxer_write_chunk(mod->mux, i_size, keyframe?AVIIF_KEYFRAME:0, MP_NOPTS_VALUE, MP_NOPTS_VALUE);
}
More information about the MPlayer-cvslog
mailing list