avcodec/hevcdec: decode at most one slice reporting being the first in the picture
authorJames Almer <jamrial@gmail.com>
Mon, 18 Mar 2019 20:25:58 +0000 (17:25 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 21 Mar 2019 00:43:10 +0000 (21:43 -0300)
commita06cd0283eeadccff7a0e8a9214c01e816cfcad2
tree7622d4037e2592595c8c4b15513e71782a8aca97
parent4321092be3e39cff38289ebbdcdd9a99879fa474
avcodec/hevcdec: decode at most one slice reporting being the first in the picture

Fixes deadlocks when decoding packets containing more than one of the aforementioned
slices when using frame threads.

Tested-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 70c8c8a818f39bc262565ec29fae2baffb3e1660)
libavcodec/hevc.c