diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-14 06:37:24 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-17 05:46:24 +0200 |
commit | 92b578e1d62adf933cfacd36c02aabc448ed214d (patch) | |
tree | 6fd8a2883c0a4fc17893ceea8902ddee8976a517 /libavutil/stereo3d.c | |
parent | 7d3cd9f9566ef5fb0c2222f64be90473152c68dc (diff) | |
download | ffmpeg-92b578e1d62adf933cfacd36c02aabc448ed214d.tar.gz |
avcodec/av1dec: Fix segfault upon allocation error
Up until now, the AV1 decoder always checks before calling its wrapper
around ff_thread_release_buffer() whether the ThreadFrame was used at
all, i.e. it checked whether the first data buffer of the AVFrame
contained therein is NULL or not. Yet this presumes that the AVFrame has
been successfully allocated, even though this can of course fail; and if
it did, one would encounter a segfault.
Fix this by removing the checks altogether: ff_thread_release_buffer()
can handle both unallocated as well as empty frames (since commit
f6774f905fb3cfdc319523ac640be30b14c1bc55).
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavutil/stereo3d.c')
0 files changed, 0 insertions, 0 deletions