summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorMickaƫl Raulet <mraulet@insa-rennes.fr>2013-10-20 22:40:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-21 10:48:24 +0200
commit09ba986cae148f309683bc6588ab54050fe4130d (patch)
treef40b0f956930d810b19350a8da23cc0442235210 /libavcodec/hevc.c
parent712eff49789a022e2fb7b6f6b0768bd1745cfffb (diff)
avcodec/hevc: fix duplicate/wrong nal unit check and difference to openhevc_upstream
NAL_BLA_W_RADL instead of NAL_BLA_N_LP Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index eb44862a2c..a1e3ce413f 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -1932,7 +1932,7 @@ static int decode_nal_unit(HEVCContext *s, const uint8_t *nal, int length)
if (s->nal_unit_type == NAL_CRA_NUT ||
s->nal_unit_type == NAL_BLA_W_LP ||
s->nal_unit_type == NAL_BLA_N_LP ||
- s->nal_unit_type == NAL_BLA_N_LP) {
+ s->nal_unit_type == NAL_BLA_W_RADL) {
s->max_ra = s->poc;
} else {
if (IS_IDR(s))