]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/hevc: fix duplicate/wrong nal unit check and difference to openhevc_upstream
authorMickaël Raulet <mraulet@insa-rennes.fr>
Sun, 20 Oct 2013 20:40:39 +0000 (22:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 21 Oct 2013 08:48:24 +0000 (10:48 +0200)
NAL_BLA_W_RADL instead of NAL_BLA_N_LP

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc.c

index eb44862a2c3f917e36b8b7b63f8693c9175514af..a1e3ce413fcaf77c5c5411ae0906a2ff49941761 100644 (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  ||
                 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))