On Sat, Aug 16, 2014 at 02:43:46PM +0200, Reimar Döffinger wrote: > On Wed, Aug 13, 2014 at 01:57:56PM +0200, Michael Niedermayer wrote: > > On Mon, Aug 11, 2014 at 09:17:18PM +0200, Reimar Döffinger wrote: > > > Unfortunately this was not explicitly documented and thus > > > might be very risky. > > > > yes > > > > maybe a AV_DICT_FREE_ARGS_ON_ERROR could be used, but its not as > > convenient as getting the behavior by default > > That would add a lot of clutter and make it more inconvenient to use > and likely to be forgotten. > I also honestly see no real use-case for not setting it. > One way to solve this would be to deprecate AV_DICT_DONT_STRDUP_KEY/ > AV_DICT_DONT_STRDUP_VAL, warning that they fail to free on error > and then add new values, e.g. AV_DICT_OWN_KEY (better suggestions?) > with the new behaviour. > Will still be a bit of a pain to replace all uses in FFmpeg, but > manageable. > What do you think? Better suggestions?
i guess its either to apply the patch or not, i dont see a better solution. renaming and deprecating options is certainly a bigger mess and doesnt avoid the problem [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel