[vlc-commits] packetizer: h264: add non field based mutiplier to num_ts

Francois Cartegnie git at videolan.org
Mon Mar 27 16:36:07 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Mar 27 15:25:22 2017 +0200| [3d5442eb5df7a8abc723ed089317c62f55cf9715] | committer: Francois Cartegnie

packetizer: h264: add non field based mutiplier to num_ts

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

 modules/packetizer/h264_slice.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/packetizer/h264_slice.c b/modules/packetizer/h264_slice.c
index 6cc9acb..a372a0d 100644
--- a/modules/packetizer/h264_slice.c
+++ b/modules/packetizer/h264_slice.c
@@ -371,6 +371,7 @@ uint8_t h264_get_num_ts( const h264_sequence_parameter_set_t *p_sps,
                          int tFOC, int bFOC )
 {
     i_pic_struct = h264_infer_pic_struct( p_sps, p_slice, i_pic_struct, tFOC, bFOC );
-    const uint8_t rgi_numclock[9] = { 1, 1, 1, 2, 2, 3, 3, 2, 3 };
+    /* !WARN modified with nuit field based multiplier for values 0, 7 and 8 */
+    const uint8_t rgi_numclock[9] = { 2, 1, 1, 2, 2, 3, 3, 4, 6 };
     return rgi_numclock[ i_pic_struct ];
 }



More information about the vlc-commits mailing list