aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vvc/dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-05-19 01:20:00 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-02 21:57:21 +0200
commitd22a33710acb004f90c7454daf8145c3943ecbeb (patch)
treeb120bbf7ef8208bc50eca65ead77cdeafae83c7d /libavcodec/vvc/dec.c
parent4824156fa06bd60b27f9f0673fbd6a3cfc780e56 (diff)
downloadffmpeg-d22a33710acb004f90c7454daf8145c3943ecbeb.tar.gz
avcodec/vvc/dec: Remove constant eos_at_start
Fixes: CID1560041 'Constant' variable guards dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/vvc/dec.c')
-rw-r--r--libavcodec/vvc/dec.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/vvc/dec.c b/libavcodec/vvc/dec.c
index 563f6fcf08..d04f68e4cf 100644
--- a/libavcodec/vvc/dec.c
+++ b/libavcodec/vvc/dec.c
@@ -841,7 +841,6 @@ static int decode_nal_units(VVCContext *s, VVCFrameContext *fc, AVPacket *avpkt)
const CodedBitstreamH266Context *h266 = s->cbc->priv_data;
CodedBitstreamFragment *frame = &s->current_frame;
int ret = 0;
- int eos_at_start = 1;
s->last_eos = s->eos;
s->eos = 0;
@@ -857,10 +856,7 @@ static int decode_nal_units(VVCContext *s, VVCFrameContext *fc, AVPacket *avpkt)
const CodedBitstreamUnit *unit = frame->units + i;
if (unit->type == VVC_EOB_NUT || unit->type == VVC_EOS_NUT) {
- if (eos_at_start)
- s->last_eos = 1;
- else
- s->eos = 1;
+ s->last_eos = 1;
} else {
ret = decode_nal_unit(s, fc, nal, unit);
if (ret < 0) {