[FFmpeg-devel] [PATCH] fix for malloc error (roundup issues 2480, 2479)

Daniel Kang daniel.d.kang
Mon Jan 3 19:01:17 CET 2011


I am a Google Code-In student, and as part of a task, I have zzufed
several files. It seems for extraordinary large total frames, ffmpeg
fails on mallocating memory. Both bugs have been reproduced, so it is
not only a bug on my box.

The patches attached fix the issues locally. Another solution is to move
the check into av_malloc, but that may create extra overhead. I am not
sure what the best solution may be.

Are there any suggestions?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ape_malloc_check.diff
Type: application/octet-stream
Size: 965 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110103/326f63e0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp4_malloc_fail_fix.diff
Type: application/octet-stream
Size: 896 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110103/326f63e0/attachment-0001.obj>



More information about the ffmpeg-devel mailing list