[FFmpeg-devel] load_input_picture-crash-fix.patch

Michael Niedermayer michaelni
Tue Mar 23 16:03:59 CET 2010


On Mon, Mar 08, 2010 at 06:41:03PM -0500, Pavel Pavlov wrote:
> > Long time ago I had some crashes inside avcodec. I tried to debug and
> > it appeared that in low memory conditions it could crash if
> > ff_alloc_picture fails. As far as I remember that ff_alloc_picture
> > could request considerable amount of memory so, return results really
> > should be checked everywhere. The attached patch fixed my problems
> 
> Patch updated to handle the last unchecked ff_alloc_picture call

Content-Description: load_input_picture-crash-fix2.patch
>  mpegvideo_enc.c |   19 ++++++++++++++-----
>  1 file changed, 14 insertions(+), 5 deletions(-)
> 8ef0b07dc62dd921318a9db1f633d0e0971e183d  load_input_picture-crash-fix2.patch

ok if tested

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100323/f33eda21/attachment.pgp>



More information about the ffmpeg-devel mailing list