Re: [Bug 94] New: ffmpegwriter crashes when writing divx
Martin Bayer <[email protected]>
| Newsgroups | gmane.comp.video.gephex.devel |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
gephex-devel mailing list
[email protected]
http://lists.gephex.org/mailman/listinfo/gephex-devel
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCHbQ9Cm3i57PRsbsRAmceAKCAWiInQEK0DVeYXNZsR8qE881TQgCfZnQi e8A80jEZwV5tSLaaAQ2BkA8= =Zj6T -----END PGP SIGNATURE-----