[FFmpeg-devel] [PATCH] Fix crash in libx264 when rc_eq is not set

Stefano Sabatini stefano.sabatini-lala
Fri Aug 29 00:35:50 CEST 2008


On date Thursday 2008-08-28 16:18:36 -0600, Loren Merritt encoded:
> On Fri, 29 Aug 2008, Stefano Sabatini wrote:
> 
> > -    x4->params.rc.psz_rc_eq = avctx->rc_eq;
> > +#if X264_BUILD < 61
> > +    if (avctx->rc_eq)
> > +        x4->params.rc.psz_rc_eq = avctx->rc_eq;
> > +#else
> > +        av_log(avctx, AV_LOG_WARNING, "Ignoring the rc_eq set, using the libx264 default one\n");
> > +#endif
> 
> Unconditionally print a warning if it's compiled with new libx264?

Sorry, and I need to sleep more.

Regards.
-- 
FFmpeg = Frightening & Freak Maxi Pitiless Elitist Guru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-libx64-rc-eq-crash-04.patch
Type: text/x-diff
Size: 750 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080829/a821d02b/attachment.patch>



More information about the ffmpeg-devel mailing list