Mercurial > libavformat.hg
changeset 5082:8d5dd051d055 libavformat
Make arguments of av_set_pts_info() unsigned.
Fixes issue1240/mpeg1/smclockmpeg1.avi.3.1
author | michael |
---|---|
date | Wed, 01 Jul 2009 18:50:31 +0000 |
parents | 56f6b1d56db9 |
children | 45ee449ae6ef |
files | avformat.h utils.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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;