aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_anlmdndsp.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-14 06:37:24 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-17 05:46:24 +0200
commit92b578e1d62adf933cfacd36c02aabc448ed214d (patch)
tree6fd8a2883c0a4fc17893ceea8902ddee8976a517 /libavfilter/af_anlmdndsp.h
parent7d3cd9f9566ef5fb0c2222f64be90473152c68dc (diff)
downloadffmpeg-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 'libavfilter/af_anlmdndsp.h')
0 files changed, 0 insertions, 0 deletions