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>
This commit is contained in:
@@ -841,7 +841,6 @@ static int decode_nal_units(VVCContext *s, VVCFrameContext *fc, AVPacket *avpkt)
|
|||||||
const CodedBitstreamH266Context *h266 = s->cbc->priv_data;
|
const CodedBitstreamH266Context *h266 = s->cbc->priv_data;
|
||||||
CodedBitstreamFragment *frame = &s->current_frame;
|
CodedBitstreamFragment *frame = &s->current_frame;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int eos_at_start = 1;
|
|
||||||
s->last_eos = s->eos;
|
s->last_eos = s->eos;
|
||||||
s->eos = 0;
|
s->eos = 0;
|
||||||
|
|
||||||
@@ -857,10 +856,7 @@ static int decode_nal_units(VVCContext *s, VVCFrameContext *fc, AVPacket *avpkt)
|
|||||||
const CodedBitstreamUnit *unit = frame->units + i;
|
const CodedBitstreamUnit *unit = frame->units + i;
|
||||||
|
|
||||||
if (unit->type == VVC_EOB_NUT || unit->type == VVC_EOS_NUT) {
|
if (unit->type == VVC_EOB_NUT || unit->type == VVC_EOS_NUT) {
|
||||||
if (eos_at_start)
|
s->last_eos = 1;
|
||||||
s->last_eos = 1;
|
|
||||||
else
|
|
||||||
s->eos = 1;
|
|
||||||
} else {
|
} else {
|
||||||
ret = decode_nal_unit(s, fc, nal, unit);
|
ret = decode_nal_unit(s, fc, nal, unit);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Reference in New Issue
Block a user