[FFmpeg-cvslog] avidec: make scale and rate unsigned.

Anton Khirnov git at videolan.org
Mon Jun 4 23:05:11 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Jun  4 11:36:51 2012 +0200| [a982e5a031c9c92726593851cee7a3792e3cbed7] | committer: Anton Khirnov

avidec: make scale and rate unsigned.

The specs say they are unsigned 32bit integers.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a982e5a031c9c92726593851cee7a3792e3cbed7
---

 libavformat/avidec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index abfea2c..38f84f9 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -39,8 +39,8 @@ typedef struct AVIStream {
     int remaining;
     int packet_size;
 
-    int scale;
-    int rate;
+    uint32_t scale;
+    uint32_t rate;
     int sample_size; /* size of one sample (or packet) (in the rate/scale sense) in bytes */
 
     int64_t cum_len; /* temporary storage (used during seek) */



More information about the ffmpeg-cvslog mailing list