diff --git a/source/Lib/DecoderLib/SEIread.cpp b/source/Lib/DecoderLib/SEIread.cpp
index 37ce61378907bdc3299b8df9e48caa00915a615f..2acb373c640ad11246333c7bc15165c5cf7f5b77 100644
--- a/source/Lib/DecoderLib/SEIread.cpp
+++ b/source/Lib/DecoderLib/SEIread.cpp
@@ -204,7 +204,6 @@ void SEIReader::getSEIDecodingUnitInfoDuiIdx(InputBitstream* bs, const uint32_t
   const SEIBufferingPeriod* bp = hrd.getBufferingPeriodSEI();
   if (bp != nullptr)
   {
-    InputBitstream* bs = getBitstream();
     InputBitstream  bsTmp(*bs);
     setBitstream(&bsTmp);