[FFmpeg-cvslog] avcodec/cbs_sei: Don't use -1th element of array
Andreas Rheinhardt
git at videolan.org
Sat Mar 13 00:43:18 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Tue Mar 9 21:29:24 2021 +0100| [12a9f3fc09c7f0ded8be76d66542a88d293663cc] | committer: Andreas Rheinhardt
avcodec/cbs_sei: Don't use -1th element of array
(This affected only suffix SEI messages; yet no such SEI messages are
currently inserted.)
Reviewed-by: Mark Thompson <sw at jkqxz.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=12a9f3fc09c7f0ded8be76d66542a88d293663cc
---
libavcodec/cbs_sei.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/cbs_sei.c b/libavcodec/cbs_sei.c
index c49830ad77..2a96db9674 100644
--- a/libavcodec/cbs_sei.c
+++ b/libavcodec/cbs_sei.c
@@ -166,7 +166,7 @@ static int cbs_sei_get_unit(CodedBitstreamContext *ctx,
}
if (i < 0) {
// No VCL units; just put it at the end.
- position = -1;
+ position = au->nb_units;
} else {
position = i + 1;
}
More information about the ffmpeg-cvslog
mailing list