1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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>
This commit is contained in:
Andreas Rheinhardt 2021-03-09 21:29:24 +01:00
parent 85685297c2
commit 12a9f3fc09

View File

@ -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;
}