On Tue, Jul 09, 2024 at 04:41:01PM +0200, Niklas Haas wrote: > From: Niklas Haas <g...@haasn.dev> > > This count gets incremented after init succeeds, when it should be > incremented after *alloc* succeeds. Otherwise, we leak the context on > failure. > > There are no negative consequences of incrementing for > allocated-but-not-initialized contexts, as the only functions that > reference it will, in the worst case, simply behave as if called on > allocated-but-not-initialized contexts, which is in line with expected > behavior when sws_init_context() fails. > --- > libswscale/utils.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-)
LGTM thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB When you are offended at any man's fault, turn to yourself and study your own failings. Then you will forget your anger. -- Epictetus
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".