diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-09 21:29:24 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-12 23:23:26 +0100 |
commit | 12a9f3fc09c7f0ded8be76d66542a88d293663cc (patch) | |
tree | a00c9be06700512fd0e5a59ded0c1586b1249861 | |
parent | 85685297c28958f3a8fa50a50ed3a6171e7f34c2 (diff) | |
download | ffmpeg-12a9f3fc09c7f0ded8be76d66542a88d293663cc.tar.gz |
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@jkqxz.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r-- | libavcodec/cbs_sei.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |