Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.71 KB | None | 0 0
  1. diff --git a/encoder/encoder.c b/encoder/encoder.c
  2. index e81172d..cb01802 100644
  3. --- a/encoder/encoder.c
  4. +++ b/encoder/encoder.c
  5. @@ -1160,8 +1160,8 @@ x264_t *x264_encoder_open( x264_param_t *param )
  6.          * ( h->param.rc.i_rc_method == X264_RC_ABR ? pow( 0.95, h->param.rc.i_qp_min )
  7.            : pow( 0.95, h->param.rc.i_qp_constant ) * X264_MAX( 1, h->param.rc.f_ip_factor )));
  8.  
  9. -    CHECKED_MALLOC( h->nal_buffer, h->out.i_bitstream * 3/2 + 4 );
  10.      h->nal_buffer_size = h->out.i_bitstream * 3/2 + 4;
  11. +    CHECKED_MALLOC( h->nal_buffer, h->nal_buffer_size );
  12.  
  13.      if( h->param.i_threads > 1 &&
  14.          x264_threadpool_init( &h->threadpool, h->param.i_threads, (void*)x264_encoder_thread_init, h ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement