[vlc-commits] videotoolbox: fix SEI header size for H264

Thomas Guillem git at videolan.org
Mon Mar 5 09:28:57 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar  2 14:35:40 2018 +0100| [184d95db114b1ce26578914a53be65c06426f28a] | committer: Thomas Guillem

videotoolbox: fix SEI header size for H264

Regression from a799daf628a31c69b4bb02624d67c32bf8127f97 (should had been done
only for HEVC)

This caused a high value of i_nb_fields and a deadlock (cf. previvous commit).

Fixes #19897

(cherry picked from commit 61ed111c17912a1d8ec11532895eaf442bc61cf8)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=184d95db114b1ce26578914a53be65c06426f28a
---

 modules/codec/videotoolbox.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index c022282238..55405d15ab 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -315,7 +315,7 @@ static bool FillReorderInfoH264(decoder_t *p_dec, const block_t *p_block,
                 sei.i_pic_struct = UINT8_MAX;
 
                 for(size_t i=0; i<i_sei_count; i++)
-                    HxxxParseSEI(sei_array[i].p_nal, sei_array[i].i_nal, 2,
+                    HxxxParseSEI(sei_array[i].p_nal, sei_array[i].i_nal, 1,
                                  ParseH264SEI, &sei);
 
                 p_info->i_num_ts = h264_get_num_ts(p_sps, &slice, sei.i_pic_struct,



More information about the vlc-commits mailing list