mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00: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:
parent
85685297c2
commit
12a9f3fc09
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue