From: Michael Niedermayer Date: Sat, 19 Oct 2013 22:23:48 +0000 (+0200) Subject: avcodec/hevc: fix EOB/EOS check X-Git-Tag: android-x86-4.4-r1~510 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4c67ed87050317e21466d115c118fae61df04c25;p=android-x86%2Fexternal-ffmpeg.git avcodec/hevc: fix EOB/EOS check Fixes: CID1108575 Signed-off-by: Michael Niedermayer --- diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 056018f38c..9ea42a0a6f 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -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;