aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-24 09:29:24 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-31 14:18:33 +0200
commit996e0a57cad35d6ec5c6eef845628e7c8be240e0 (patch)
tree6ae907d803fdc06a818fa9dbf10503466d9293db
parentdfd0320e23e39ce1362fcb1f919d3f6d6c8a0b53 (diff)
downloadffmpeg-996e0a57cad35d6ec5c6eef845628e7c8be240e0.tar.gz
avformat/matroskadec: Add assert to silence Coverity false positive
Helps with Coverity issue #1452453. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 2f07e11d87..13959f8b3d 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1315,6 +1315,8 @@ static int ebml_parse(MatroskaDemuxContext *matroska,
matroska->num_levels--;
return LEVEL_ENDED;
}
+ // We have not encountered a known element; syntax is a sentinel.
+ av_assert1(syntax->type == EBML_NONE);
};
}