OSDN Git Service

avcodec/hevc: fix EOB/EOS check
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Oct 2013 22:23:48 +0000 (00:23 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Oct 2013 22:23:48 +0000 (00:23 +0200)
Fixes: CID1108575
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc.c

index 056018f..9ea42a0 100644 (file)
@@ -2700,7 +2700,7 @@ static int decode_nal_units(HEVCContext *s, const uint8_t *buf, int length)
             goto fail;
         hls_nal_unit(s);
 
-        if (s->nal_unit_type == NAL_EOS_NUT || s->nal_unit_type == NAL_EOS_NUT)
+        if (s->nal_unit_type == NAL_EOS_NUT || s->nal_unit_type == NAL_EOB_NUT)
             s->eos = 1;
 
         buf    += consumed;