Andreas Rheinhardt (12021-08-31): > realloc is not supposed to transfer ownership, av_dict_set() with these > flags is. For me its behaviour makes sense (and avoids lots of av_free() > on failure paths).
This is C, not Rust: ownership rules are in the eye of the beholder. The objective thing to say is: av_dict_set() with DONT_STRDUP destroys its argument in case of failure, realloc() does not. Anyway, the problem is fixed, let us not split hairs furthers on this, and thank you for spotting it. Regards, -- Nicolas George
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".