[FFmpeg-devel] [PATCH 24/40] avcodec/av1dec: Fix segfault upon allocation error

Paul B Mahol onemda at gmail.com
Wed Sep 16 12:18:47 EEST 2020


On Mon, Sep 14, 2020 at 07:27:31AM +0200, Andreas Rheinhardt wrote:
> The decoder's close function simply presumed that some AVFrames have
> been successfully allocated although this can of course fail.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
> Once could btw return immediately as soon as one encounters an AVFrame
> that is NULL, because these frames are the first things to be allocated
> in init (and in the same order as they are freed); yet I wanted to avoid
> this additional dependency.
> 
>  libavcodec/av1dec.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

probably ok


More information about the ffmpeg-devel mailing list