comparison libmpcodecs/ve_x264.c @ 30747:7ac542b9ca24

Use the KEYFRAME define instead of some magic number.
author reimar
date Sun, 28 Feb 2010 07:45:23 +0000
parents a972c1a4a012
children 923f55aafcf6
comparison
equal deleted inserted replaced
30746:7092b8fc23f4 30747:7ac542b9ca24
261 int keyframe = (pic_out.i_type == X264_TYPE_IDR) || 261 int keyframe = (pic_out.i_type == X264_TYPE_IDR) ||
262 (pic_out.i_type == X264_TYPE_I 262 (pic_out.i_type == X264_TYPE_I
263 && param.i_frame_reference == 1 263 && param.i_frame_reference == 1
264 && !param.i_bframe); 264 && !param.i_bframe);
265 memcpy(mod->mux->buffer, nal->p_payload, i_size); 265 memcpy(mod->mux->buffer, nal->p_payload, i_size);
266 muxer_write_chunk(mod->mux, i_size, keyframe?0x10:0, MP_NOPTS_VALUE, MP_NOPTS_VALUE); 266 muxer_write_chunk(mod->mux, i_size, keyframe?AVIIF_KEYFRAME:0, MP_NOPTS_VALUE, MP_NOPTS_VALUE);
267 } 267 }
268 else 268 else
269 ++mod->mux->encoder_delay; 269 ++mod->mux->encoder_delay;
270 270
271 return i_size; 271 return i_size;