[vlc-devel] commit: Fixed SPS parsing when scaling matrices are present (h264). ( Laurent Aimar )

git version control git at videolan.org
Sat Feb 13 23:04:39 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 13 22:54:18 2010 +0100| [26ae73ad5db4cac8e465a651ee0b8afea5a5dd0b] | committer: Laurent Aimar 

Fixed SPS parsing when scaling matrices are present (h264).

It partially closes #3161.

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

 modules/packetizer/h264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 1f8ed09..43872e7 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -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 = ... */
                     }




More information about the vlc-devel mailing list