Mercurial > libavcodec.hg
diff x264.c @ 3063:f02d0b59279c libavcodec
Remove all stray tabs and trailing whitespace, this time for good.
author | diego |
---|---|
date | Tue, 24 Jan 2006 10:33:14 +0000 |
parents | d640e46c69ea |
children | 7dcdc73c1631 |
line wrap: on
line diff
--- a/x264.c Mon Jan 23 06:40:08 2006 +0000 +++ b/x264.c Tue Jan 24 10:33:14 2006 +0000 @@ -225,7 +225,7 @@ if(avctx->level > 0) x4->params.i_level_idc = avctx->level; - x4->params.rc.f_rate_tolerance = + x4->params.rc.f_rate_tolerance = (float)avctx->bit_rate_tolerance/avctx->bit_rate; if((avctx->rc_buffer_size != 0) && @@ -258,14 +258,14 @@ avctx->coded_frame = &x4->out_pic; if(avctx->flags & CODEC_FLAG_GLOBAL_HEADER){ - x264_nal_t *nal; - int nnal, i, s = 0; + x264_nal_t *nal; + int nnal, i, s = 0; - x264_encoder_headers(x4->enc, &nal, &nnal); + x264_encoder_headers(x4->enc, &nal, &nnal); - /* 5 bytes NAL header + worst case escaping */ - for(i = 0; i < nnal; i++) - s += 5 + nal[i].i_payload * 4 / 3; + /* 5 bytes NAL header + worst case escaping */ + for(i = 0; i < nnal; i++) + s += 5 + nal[i].i_payload * 4 / 3; avctx->extradata = av_malloc(s); avctx->extradata_size = encode_nals(avctx->extradata, s, nal, nnal);