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>
Wed, 20 Mar 2019 23:28:04 +0000 (20:28 -0300)
commitdbef08b60f44469228d37c63ede587490492acb2
treea404fb83f6fa6ab541ebd23aff2fe05494817ab8
parent77d244e7a937bf7e491d1783013e6b5a7c2ef797
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