changeset 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 311f7ae6fbbc
children 5345b7938443
files libx264.c
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libx264.c	Fri Aug 29 14:53:07 2008 +0000
+++ b/libx264.c	Fri Aug 29 17:37:32 2008 +0000
@@ -253,7 +253,6 @@
     x4->params.rc.f_ip_factor = 1/fabs(avctx->i_quant_factor);
     x4->params.rc.f_pb_factor = avctx->b_quant_factor;
     x4->params.analyse.i_chroma_qp_offset = avctx->chromaoffset;
-    x4->params.rc.psz_rc_eq = avctx->rc_eq;
 
     x4->params.analyse.b_psnr = avctx->flags & CODEC_FLAG_PSNR;
     x4->params.i_log_level = X264_LOG_DEBUG;