avformat/matroskadec: Add assert to silence Coverity false positive

Helps with Coverity issue #1452453.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.1
Andreas Rheinhardt 8 months ago
parent dfd0320e23
commit 996e0a57ca
  1. 2
      libavformat/matroskadec.c

@ -1315,6 +1315,8 @@ static int ebml_parse(MatroskaDemuxContext *matroska,
matroska->num_levels--; matroska->num_levels--;
return LEVEL_ENDED; return LEVEL_ENDED;
} }
// We have not encountered a known element; syntax is a sentinel.
av_assert1(syntax->type == EBML_NONE);
}; };
} }

Loading…
Cancel
Save