Mercurial > libavcodec.hg
comparison libx264.c @ 7729:38d356950bf4 libavcodec
Make X264_init() no longer assign avctx->rc_eq to libx264's context.
Fix a crash due to X264_init() setting the libx264 rc_eq field to NULL
when rc_eq was not defined. As a consequence rc_eq can no longer be
manually specified and passed to libx264, but this option is going to
be removed from the libx264 public API anyway.
See the thread: "Fix crash in libx264 when rc_eq is not set".
author | stefano |
---|---|
date | Fri, 29 Aug 2008 17:37:32 +0000 |
parents | e943e1409077 |
children | 850abcd10e19 |
comparison
equal
deleted
inserted
replaced
7728:311f7ae6fbbc | 7729:38d356950bf4 |
---|---|
251 else x4->params.rc.f_vbv_buffer_init = 0.9; | 251 else x4->params.rc.f_vbv_buffer_init = 0.9; |
252 | 252 |
253 x4->params.rc.f_ip_factor = 1/fabs(avctx->i_quant_factor); | 253 x4->params.rc.f_ip_factor = 1/fabs(avctx->i_quant_factor); |
254 x4->params.rc.f_pb_factor = avctx->b_quant_factor; | 254 x4->params.rc.f_pb_factor = avctx->b_quant_factor; |
255 x4->params.analyse.i_chroma_qp_offset = avctx->chromaoffset; | 255 x4->params.analyse.i_chroma_qp_offset = avctx->chromaoffset; |
256 x4->params.rc.psz_rc_eq = avctx->rc_eq; | |
257 | 256 |
258 x4->params.analyse.b_psnr = avctx->flags & CODEC_FLAG_PSNR; | 257 x4->params.analyse.b_psnr = avctx->flags & CODEC_FLAG_PSNR; |
259 x4->params.i_log_level = X264_LOG_DEBUG; | 258 x4->params.i_log_level = X264_LOG_DEBUG; |
260 | 259 |
261 x4->params.b_aud = avctx->flags2 & CODEC_FLAG2_AUD; | 260 x4->params.b_aud = avctx->flags2 & CODEC_FLAG2_AUD; |