[FFmpeg-devel] [PATCH] lavc/videotoolbox: validate vt context in the decoder callback

Rick Kern kernrj at gmail.com
Mon Dec 5 15:36:57 EET 2022


On Sun, Dec 4, 2022 at 12:51 PM Alessandro Di Nepi <
alessandro.dinepi at gmail.com> wrote:

> On 4 Dec 2022, 17:01 +0200, FFmpeg development discussions and patches <
> ffmpeg-devel at ffmpeg.org>, wrote:
> > When this happens, does it continue happening, or is it transient? My
> main
> > concern is log spamming.
> Good question: this is just a transient state, so that it won't continue
> happening.
> To give you some context: when the decoding start, the value of `vtctx` is
> captured "too" early so that the first time the callback is called, it's
> still NULL.
> The next time it will have a proper value.
>
If the code isn't setting a variable in time, that issue should be fixed.
Otherwise the decoder will drop frames.

_______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list