diff mbox series

[FFmpeg-devel] Fix H.264/5 SEI unit ordering (regression from 8843607f)

Message ID 20220124005756.2680-1-jwaltman@toyon.com
State New
Headers show
Series [FFmpeg-devel] Fix H.264/5 SEI unit ordering (regression from 8843607f) | expand

Checks

Context Check Description
andriy/commit_msg_armv7_RPi4 warning The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
andriy/commit_msg_aarch64_jetson warning The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
andriy/commit_msg_x86 warning The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/commit_msg_ppc warning The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Jon Waltman Jan. 24, 2022, 12:57 a.m. UTC
From: Jon Waltman <jwaltman@toyon.com>

---
 libavcodec/cbs_sei.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/cbs_sei.c b/libavcodec/cbs_sei.c
index 141e97ec58..4a4a58957b 100644
--- a/libavcodec/cbs_sei.c
+++ b/libavcodec/cbs_sei.c
@@ -154,14 +154,14 @@  static int cbs_sei_get_unit(CodedBitstreamContext *ctx,
     if (prefix) {
         // ... before the first VCL NAL unit.
         for (i = 0; i < au->nb_units; i++) {
-            if (au->units[i].type < highest_vcl_type)
+            if (au->units[i].type <= highest_vcl_type)
                 break;
         }
         position = i;
     } else {
         // ... after the last VCL NAL unit.
         for (i = au->nb_units - 1; i >= 0; i--) {
-            if (au->units[i].type < highest_vcl_type)
+            if (au->units[i].type <= highest_vcl_type)
                 break;
         }
         if (i < 0) {