summaryrefslogtreecommitdiff
path: root/libavcodec/hevcdec.h
diff options
context:
space:
mode:
authorMark Wu <wfwf1997@gmail.com>2018-10-23 12:49:08 +0800
committerJames Almer <jamrial@gmail.com>2018-11-10 14:32:17 -0300
commit10bc4c3a7df7bb26303067b97311b7eeedfd453e (patch)
treebc9240762957f675ec91f3f1738192ae165548f3 /libavcodec/hevcdec.h
parent27e114b4511b771ccf2c64ab9f4a3d0391ace4ea (diff)
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>
Diffstat (limited to 'libavcodec/hevcdec.h')
-rw-r--r--libavcodec/hevcdec.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h
index f0f588f2b8..dd951aae06 100644
--- a/libavcodec/hevcdec.h
+++ b/libavcodec/hevcdec.h
@@ -559,8 +559,6 @@ static av_always_inline int ff_hevc_nal_is_nonref(enum HEVCNALUnitType type)
case HEVC_NAL_VCL_N10:
case HEVC_NAL_VCL_N12:
case HEVC_NAL_VCL_N14:
- case HEVC_NAL_BLA_N_LP:
- case HEVC_NAL_IDR_N_LP:
return 1;
break;
default: break;