]> git.sesse.net Git - vlc/commitdiff
Fixed SPS parsing when scaling matrices are present (h264).
authorLaurent Aimar <fenrir@videolan.org>
Sat, 13 Feb 2010 21:54:18 +0000 (22:54 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 13 Feb 2010 22:03:47 +0000 (23:03 +0100)
It partially closes #3161.

modules/packetizer/h264.c

index 1f8ed09efdcc0176f88178d179526d71748a66c7..43872e7305d5549fe8a67c29aa66c4ffd9b257e4 100644 (file)
@@ -831,7 +831,7 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
                     if( i_nextscale != 0 )
                     {
                         /* delta_scale */
-                        i_tmp = bs_read( &s, 1 );
+                        i_tmp = bs_read_se( &s );
                         i_nextscale = ( i_lastscale + i_tmp + 256 ) % 256;
                         /* useDefaultScalingMatrixFlag = ... */
                     }