comparison x264.c @ 4115:4e1b1a37e9d6 libavcodec

indentation
author mru
date Wed, 01 Nov 2006 18:19:20 +0000
parents 903017d72ffe
children 8d67ae8320dc
comparison
equal deleted inserted replaced
4114:903017d72ffe 4115:4e1b1a37e9d6
77 77
78 x4->pic.img.i_csp = X264_CSP_I420; 78 x4->pic.img.i_csp = X264_CSP_I420;
79 x4->pic.img.i_plane = 3; 79 x4->pic.img.i_plane = 3;
80 80
81 if (frame) { 81 if (frame) {
82 for(i = 0; i < 3; i++){ 82 for(i = 0; i < 3; i++){
83 x4->pic.img.plane[i] = frame->data[i]; 83 x4->pic.img.plane[i] = frame->data[i];
84 x4->pic.img.i_stride[i] = frame->linesize[i]; 84 x4->pic.img.i_stride[i] = frame->linesize[i];
85 } 85 }
86 86
87 x4->pic.i_pts = frame->pts; 87 x4->pic.i_pts = frame->pts;
88 x4->pic.i_type = X264_TYPE_AUTO; 88 x4->pic.i_type = X264_TYPE_AUTO;
89 } 89 }
90 90
91 if(x264_encoder_encode(x4->enc, &nal, &nnal, frame? &x4->pic: NULL, 91 if(x264_encoder_encode(x4->enc, &nal, &nnal, frame? &x4->pic: NULL,
92 &pic_out)) 92 &pic_out))
93 return -1; 93 return -1;