diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-07-01 18:50:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-07-01 18:50:31 +0000 |
commit | dec14949a6998179d48de36f2df57c237b970ed1 (patch) | |
tree | 6ef29609a045b21280e66fc2694536fc193acc29 | |
parent | ec62d942ea73d98ee2760746884779d7e0ccb6d3 (diff) | |
download | ffmpeg-dec14949a6998179d48de36f2df57c237b970ed1.tar.gz |
Make arguments of av_set_pts_info() unsigned.
Fixes issue1240/mpeg1/smclockmpeg1.avi.3.1
Originally committed as revision 19319 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avformat.h | 2 | ||||
-rw-r--r-- | libavformat/utils.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 57faaedb9c..2185edc992 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -963,7 +963,7 @@ AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, * @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 --git a/libavformat/utils.c b/libavformat/utils.c index 9325e3dd3b..b1c0363fde 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3304,7 +3304,7 @@ char *ff_data_to_hex(char *buff, const uint8_t *src, int s) } 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; |