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 01:23:12 +0000 (22:23 -0300)
commitb307cbe276131463b3595dcf3abbe244c0bc7389
tree9c6281da0138eebc50ad14e9d1f7f18b1a7ef978
parentbdcbe9296a43580fb27f8a3eda65d9110a85edcf
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