[vlc-commits] packetizer: vc1: make the aspect ratio and frame rate unsigned

Steve Lhomme git at videolan.org
Fri Apr 7 14:27:14 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Apr  3 16:20:50 2017 +0200| [200c540c5985e6a4c43cc5682111532cfa3d91e2] | committer: Jean-Baptiste Kempf

packetizer: vc1: make the aspect ratio and frame rate unsigned

Although the aspect ratio is read, it's displayed in the logs but not used.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/packetizer/vc1.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/packetizer/vc1.c b/modules/packetizer/vc1.c
index fab961b..de817c6 100644
--- a/modules/packetizer/vc1.c
+++ b/modules/packetizer/vc1.c
@@ -516,7 +516,7 @@ static block_t *ParseIDU( decoder_t *p_dec, bool *pb_ts_used, block_t *p_frag )
 
                 if( bs_read( &s, 1 ) )  /* Pixel aspect ratio (PAR/SAR) */
                 {
-                    static const int p_ar[16][2] = {
+                    static const unsigned p_ar[16][2] = {
                         { 0, 0}, { 1, 1}, {12,11}, {10,11}, {16,11}, {40,33},
                         {24,11}, {20,11}, {32,11}, {80,33}, {18,11}, {15,11},
                         {64,33}, {160,99},{ 0, 0}, { 0, 0}
@@ -541,8 +541,8 @@ static block_t *ParseIDU( decoder_t *p_dec, bool *pb_ts_used, block_t *p_frag )
             }
             if( bs_read( &s, 1 ) )  /* Frame rate */
             {
-                int i_fps_num = 0;
-                int i_fps_den = 0;
+                unsigned i_fps_num = 0;
+                unsigned i_fps_den = 0;
                 if( bs_read( &s, 1 ) )
                 {
                     i_fps_num = bs_read( &s, 16 )+1;



More information about the vlc-commits mailing list