1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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>
This commit is contained in:
Mickaël Raulet
2013-10-20 22:40:39 +02:00
committed by Michael Niedermayer
parent 712eff4978
commit 09ba986cae

View File

@@ -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 || if (s->nal_unit_type == NAL_CRA_NUT ||
s->nal_unit_type == NAL_BLA_W_LP || 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_N_LP) { s->nal_unit_type == NAL_BLA_W_RADL) {
s->max_ra = s->poc; s->max_ra = s->poc;
} else { } else {
if (IS_IDR(s)) if (IS_IDR(s))