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

Sven Schnelle svens at gmx.de
Thu Feb 24 13:17:04 CET 2005


Hi,

Martin Bayer <martin at gephex.org> writes:

>  > 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.

Yes. My Quickfix at the Moment is changing the spaces in "DIVX High" /
"DIVX Low" / ..., to "-". But i will look at it and try to find where
the text after space in the Default setting "DIVX High" is cutted off. 

Maybe we should also do some extra checking there.

Sven.



More information about the gephex-devel mailing list