> Date: Thu, 8 May 2008 14:46:25 -0400> From: [EMAIL PROTECTED]> To:
> [email protected]> Subject: Re: [libav-user] Stack Overflow when decode
> mjpeg files ?> > Hi,> > On Thu, May 8, 2008 at 2:28 PM, 趙 子賢 <[EMAIL
> PROTECTED]> wrote:> > > I am writing a decoder to decoder mjpeg files by
> directshow.(use> > libavcodec) But I faced the "stack overflow" problem.> >
> The decode procedure is follow the step of the program "ffplay". But when> >
> the avcodec_decode_video is called, the error "stack overflow" is happen.> >
> >
> http://webcvs.freedesktop.org/gstreamer/mirror/ffmpeg/patches/mjpegoverflow.patch?revision=1.6&view=markupmay>
> help. Shouldn't be needed if your input has the 16 byte padding which> is>
> default when grabbing buffers from lavf, maybe something is broken in your>
> configuration or win32 or so, then the patch may help. I submitted it once>
> and it was rejected because of the padding requirement and prospective>
> negative effect on performance or something silly like that.> > Ronald
Thanks for replying
But this patch doesn't still work for me. Stack overflow still happen ...
The patch step I do is to modify the while stop criteria in the function
find_marker() of mjpegdec.c.
old : while (buf_ptr < buf_end) { modify to : while (buf_ptr < buf_end - 1) {
Because find_marker() isn't in mjpeg.c in my enviroment. (I use
ffmpeg-SVN-r10461 version, I can't compile the latest in SVN). Is that right ?
Anyway, thanks for your reply and suggestion. I'll try to solve this problem.
> _______________________________________________> libav-user mailing list>
> [email protected]>
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
_________________________________________________________________
5 GB 超大容量 、創新便捷、安全防護垃圾郵件和病毒 — 立即升級 Windows Live Hotmail
http://mail.live.com
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user