# HG changeset patch # User michael # Date 1246474231 0 # Node ID 8d5dd051d055c733b3715ef9da04f468a858fa71 # Parent 56f6b1d56db9d13754ae0417925c0260e74cd9e8 Make arguments of av_set_pts_info() unsigned. Fixes issue1240/mpeg1/smclockmpeg1.avi.3.1 diff -r 56f6b1d56db9 -r 8d5dd051d055 avformat.h --- a/avformat.h Tue Jun 30 07:43:32 2009 +0000 +++ b/avformat.h Wed Jul 01 18:50:31 2009 +0000 @@ -963,7 +963,7 @@ * @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 diff -r 56f6b1d56db9 -r 8d5dd051d055 utils.c --- a/utils.c Tue Jun 30 07:43:32 2009 +0000 +++ b/utils.c Wed Jul 01 18:50:31 2009 +0000 @@ -3304,7 +3304,7 @@ } 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;