avcodec/hevcdec: fix non-ref frame judgement
authorMark Wu <wfwf1997@gmail.com>
Tue, 23 Oct 2018 04:49:08 +0000 (12:49 +0800)
committerJames Almer <jamrial@gmail.com>
Sat, 10 Nov 2018 17:38:25 +0000 (14:38 -0300)
commit11dff170ef79d26d1de2bcd13b603a6c4c5c9815
tree11bdc82b8d15d36620cbf1331c5a29aff49ef8f7
parent10506de9ad1fb050737ef79cf4853742b793c37d
avcodec/hevcdec: fix non-ref frame judgement

After inspecting the source code of x265, mpv and ffmpeg, I've found that
ffmpeg mistakenly regards EVC_NAL_BLA_N_LP and HEVC_NAL_IDR_N_LP as non-
reference frames, which are acutally reference frames according to the
specification in x265, and drops them.

This patch should address the problem. I have tested it with mpv.

Signed-off-by: Mark Wu <wfwf1997@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 10bc4c3a7df7bb26303067b97311b7eeedfd453e)
libavcodec/hevcdec.h