On Thu, Jul 3, 2025 at 11:08 AM Nicolas George <geo...@nsup.org> wrote:

> Marvin Scholz (HE12025-06-25):
> > Would you be fine with just the removal of the messing with
> > the AVDictionary entries then, leaving the macros in place,
> > essentially removing STEAL_OPTION and doing a copy in CONSUME_OPTION?
> >
> > IMHO saving two copies of a string does not justify abusing the
> > AVDictionary API in such a way. This isnt a hot code path either
> > where this would make sense...
>
> It is not just a matter of saving a few cycles. What you propose
> requires writing more code, including error checks and an occasion for
> failure.
>
> If it was new code, I would consider it, but changing existing code that
> has been working for years to make it more verbose, more failure prone
> and less efficient, no, thanks.
>
> Let us just document that it is a valid use.


Disagree here, by that reasoning we should never touch code already written.

Also it does not seem very much valid behavior, we should avoid introducing
more hacks.

IMO the proposed changes are good to go.
-- 
Vittorio
_______________________________________________
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".

Reply via email to