Re: [FFmpeg-devel] [PATCH v4] avcodec/decode: validate hw_frames_ctx when AVHWAccel.free_frame_priv is used

2023-11-21 Thread Lynne
Nov 21, 2023, 07:02 by dmitry.v.rogozhkin-at-intel@ffmpeg.org: > On Tue, 2023-11-21 at 06:17 +0100, Lynne wrote: > >> Nov 21, 2023, 05:38 by dmitry.v.rogozhkin-at-intel@ffmpeg.org: >> >> > Validate that a hw_frames_ctx is available before using it for >> > the AVHWAccel.free_frame_priv

Re: [FFmpeg-devel] [PATCH v4] avcodec/decode: validate hw_frames_ctx when AVHWAccel.free_frame_priv is used

2023-11-20 Thread Rogozhkin, Dmitry V
On Tue, 2023-11-21 at 06:17 +0100, Lynne wrote: > Nov 21, 2023, 05:38 by dmitry.v.rogozhkin-at-intel@ffmpeg.org: > > > Validate that a hw_frames_ctx is available before using it for > > the AVHWAccel.free_frame_priv callback, and don't require it to > > be present when the callback is not in

Re: [FFmpeg-devel] [PATCH v4] avcodec/decode: validate hw_frames_ctx when AVHWAccel.free_frame_priv is used

2023-11-20 Thread Lynne
Nov 21, 2023, 05:38 by dmitry.v.rogozhkin-at-intel@ffmpeg.org: > Validate that a hw_frames_ctx is available before using it for > the AVHWAccel.free_frame_priv callback, and don't require it to > be present when the callback is not in use by the HWAccel. > > v2: check for free_frame_priv

[FFmpeg-devel] [PATCH v4] avcodec/decode: validate hw_frames_ctx when AVHWAccel.free_frame_priv is used

2023-11-20 Thread Dmitry Rogozhkin
Validate that a hw_frames_ctx is available before using it for the AVHWAccel.free_frame_priv callback, and don't require it to be present when the callback is not in use by the HWAccel. v2: check for free_frame_priv (Hendrik) v3: return EINVAL (Christoph Reiter) v4: better commit message