[Bf-committers] bug#10703 loading an .avi captured by dosbox causes a segfault

Stephen Swaney sswaney at centurytel.net
Mon May 5 18:31:20 CEST 2008

On Mon, May 05, 2008 at 11:29:48AM -0400, Michael [Plouj] Ploujnikov wrote:
> I'm trying to fix the bug which I found in Blender while working a
> dosbox generated AVI file. You can see the details of the bug on the
> actual report page [1].
> My first thought was that the FFMPEG code in avcodec_close() is
> incorrect to assume a non-null codec. I'm unfamiliar with FFMPEG and I
> don't know what exactly closing a codec (context) is supposed to mean.
> At the very least, I don't think the FFMPEG code should allow a
> segfault. If I should take this problem to the FFMPEG developers,
> please let me know. I was hoping to see a fix in the latest git
> version of FFMPEG [2] but it looks exactly like the Blender FFMPEG. My
> last idea is to see how the codec context (pCodecCtx) is created and
> why it points to a null codec in my case. However, again, I'm not
> familiar with how FFMPEG is supposed to work so I would like someone
> to guide me in the right direction.

>From comments to the bug report:

I would consider this an unsupported format.  The codec for the sample file is ZMBV.

Reference here:

This is not a common Audio/Video format.  It is not unreasonable to expect users to convert this to something more common among the dozen or so codecs we currently support.

Since it has been assigned to Peter, he can decide how to deal with it.
I would personally close it as Not A Bug.

And yes, crashing is bad.

Stephen Swaney			
sswaney at centurytel.net

More information about the Bf-committers mailing list