[vlc-devel] [PATCH 3/3] transcode: video: fix insertion of fps filter
Steve Lhomme
robux4 at ycbcr.xyz
Wed Jan 27 06:55:53 UTC 2021
On 2021-01-26 20:16, Francois Cartegnie wrote:
> Le 26/01/2021 à 20:07, Alexandre Janniaux a écrit :
>> The dst es_format_t seems to be overriden no matter what,
>> before anything even happens, and the documentation doesn't
>> seem to require it either.
>>
>> The init() copy() clean() cycle seems to only exist in bluray,
>> mp4, adaptive and a bit of transcode.
>>
>> What would seem harmful to me is calling es_format_Clean() on
>> a non-initialized es_format but it's clearly initialized right
>> after it's declaration by es_format_Copy, or maybe I miss
>> something there.
>
> If copy does init, then what copy after copy does ?
> It leaks or... it needs to clean which makes earlier init mandatory.
>
> That's one example why we should have kept full init() clean() cycles
> everywhere, and even if the init is zero op.
Instead of Copy it could be called InitFrom.
More information about the vlc-devel
mailing list