vlc | branch: master | Thomas Guillem <tho...@gllm.fr> | Fri Mar  2 14:35:40 
2018 +0100| [61ed111c17912a1d8ec11532895eaf442bc61cf8] | 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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=61ed111c17912a1d8ec11532895eaf442bc61cf8
---

 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 f3debee31b..d16e11aadb 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,

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to