comparison libx264.c @ 7001:8193f8ae7ff4 libavcodec

x264 interlaced encoding option
author bcoudurier
date Wed, 04 Jun 2008 00:56:36 +0000
parents af0fe48cda98
children 92c74bbdf4fb
comparison
equal deleted inserted replaced
7000:af0fe48cda98 7001:8193f8ae7ff4
258 258
259 x4->params.b_aud = avctx->flags2 & CODEC_FLAG2_AUD; 259 x4->params.b_aud = avctx->flags2 & CODEC_FLAG2_AUD;
260 260
261 x4->params.i_threads = avctx->thread_count; 261 x4->params.i_threads = avctx->thread_count;
262 262
263 x4->params.b_interlaced = avctx->flags & CODEC_FLAG_INTERLACED_DCT;
264
263 if(avctx->flags & CODEC_FLAG_GLOBAL_HEADER){ 265 if(avctx->flags & CODEC_FLAG_GLOBAL_HEADER){
264 x4->params.b_repeat_headers = 0; 266 x4->params.b_repeat_headers = 0;
265 } 267 }
266 268
267 x4->enc = x264_encoder_open(&x4->params); 269 x4->enc = x264_encoder_open(&x4->params);