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:03:48 +0000 (21:03 -0300)
commitda6a61606a1936a6ccceb6a4868247a19309c140
tree645f3a3cbefbf07a414c622b3ad7104b8c027b5f
parent15b385efca6a79e3762cfbfdd7a5678e245e811e
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/hevcdec.c