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 22:53:12 +0000 (19:53 -0300)
commit70c8c8a818f39bc262565ec29fae2baffb3e1660
tree0a3b9131419033bbb8f743ccc5041806f5720d5d
parent3ac474892c38b78a634dd32a94b4c1a4d24bed9c
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>
libavcodec/hevcdec.c