[FFmpeg-cvslog] r19319 - in trunk/libavformat: avformat.h utils.c

michael subversion
Wed Jul 1 20:50:31 CEST 2009


Author: michael
Date: Wed Jul  1 20:50:31 2009
New Revision: 19319

Log:
Make arguments of av_set_pts_info() unsigned.
Fixes issue1240/mpeg1/smclockmpeg1.avi.3.1

Modified:
   trunk/libavformat/avformat.h
   trunk/libavformat/utils.c

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	Wed Jul  1 19:48:22 2009	(r19318)
+++ trunk/libavformat/avformat.h	Wed Jul  1 20:50:31 2009	(r19319)
@@ -963,7 +963,7 @@ AVChapter *ff_new_chapter(AVFormatContex
  * @param pts_den denominator to convert to seconds (MPEG: 90000)
  */
 void av_set_pts_info(AVStream *s, int pts_wrap_bits,
-                     int pts_num, int pts_den);
+                     unsigned int pts_num, unsigned int pts_den);
 
 #define AVSEEK_FLAG_BACKWARD 1 ///< seek backward
 #define AVSEEK_FLAG_BYTE     2 ///< seeking based on position in bytes

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Wed Jul  1 19:48:22 2009	(r19318)
+++ trunk/libavformat/utils.c	Wed Jul  1 20:50:31 2009	(r19319)
@@ -3304,7 +3304,7 @@ char *ff_data_to_hex(char *buff, const u
 }
 
 void av_set_pts_info(AVStream *s, int pts_wrap_bits,
-                     int pts_num, int pts_den)
+                     unsigned int pts_num, unsigned int pts_den)
 {
     unsigned int gcd= av_gcd(pts_num, pts_den);
     s->pts_wrap_bits = pts_wrap_bits;



More information about the ffmpeg-cvslog mailing list