Make arguments of av_set_pts_info() unsigned.

Fixes issue1240/mpeg1/smclockmpeg1.avi.3.1



Originally committed as revision 21707 to svn://svn.ffmpeg.org/ffmpeg/branches/0.5
This commit is contained in:
Reinhard Tartler
2010-02-09 18:10:07 +00:00
parent 7d061cfe17
commit 1e9ac36f66
2 changed files with 2 additions and 2 deletions

View File

@@ -1035,7 +1035,7 @@ AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base,
* @param pts_den denominator to convert to seconds (MPEG: 90000) * @param pts_den denominator to convert to seconds (MPEG: 90000)
*/ */
void av_set_pts_info(AVStream *s, int pts_wrap_bits, 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_BACKWARD 1 ///< seek backward
#define AVSEEK_FLAG_BYTE 2 ///< seeking based on position in bytes #define AVSEEK_FLAG_BYTE 2 ///< seeking based on position in bytes

View File

@@ -3286,7 +3286,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, 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); unsigned int gcd= av_gcd(pts_num, pts_den);
s->pts_wrap_bits = pts_wrap_bits; s->pts_wrap_bits = pts_wrap_bits;