[gephex-devel] [Bug 94] New: ffmpegwriter crashes when writing divx

Martin Bayer martin at gephex.org
Thu Feb 24 12:02:13 CET 2005


Hi Sven and Mad,

 > The real problem is that encstr contains "DIVX" after startup as
 > default and not "DIVX High". And so ffmpegwriter::initEncoder can't
 > find any entry in encmap.

there is this line in FFMpegWriter::initEncoder():

fmt = guess_format(encmap.find(encstr)->second.second.c_str(), NULL,
                    NULL);

If encstr is not in the (enc)map the "find(encstr)" returns a
encstr.end(). Dereferencing this is not allowed.

In the constructor of FFMpegWriter there is no check if the "encstr"
parameter is valid.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.gephex.org/pipermail/gephex-devel/attachments/20050224/65cef4c1/signature.pgp


More information about the gephex-devel mailing list