]> git.sesse.net Git - ffmpeg/commitdiff
int / int64 fix by (Wolfram Gloger <wmglo @@@ dent:med:uni-muenchen:de>)
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 23 Nov 2004 18:23:56 +0000 (18:23 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 23 Nov 2004 18:23:56 +0000 (18:23 +0000)
Originally committed as revision 3704 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avformat.h
libavformat/utils.c

index 626c0d0d6872acf7b7701e24783e244da40073db..d2812b3984fba4e064afbb30d463beeba553b28f 100644 (file)
@@ -583,7 +583,7 @@ void av_set_pts_info(AVStream *s, int pts_wrap_bits,
 #define AVSEEK_FLAG_BYTE     2 ///< seeking based on position in bytes
 
 int av_find_default_stream_index(AVFormatContext *s);
-int av_index_search_timestamp(AVStream *st, int timestamp, int flags);
+int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags);
 int av_add_index_entry(AVStream *st,
                        int64_t pos, int64_t timestamp, int distance, int flags);
 int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts, int flags);
index 6178d15ffec806ea68e10ac352ff6d1e1eeb2a43..6b3bd5db484f9e50c46ca9f76d82801b13bcc63e 100644 (file)
@@ -1046,7 +1046,8 @@ static int is_raw_stream(AVFormatContext *s)
  *                 then it will be >=
  * @return < 0 if no such timestamp could be found
  */
-int av_index_search_timestamp(AVStream *st, int wanted_timestamp, int backward)
+int av_index_search_timestamp(AVStream *st, int64_t wanted_timestamp,
+                              int backward)
 {
     AVIndexEntry *entries= st->index_entries;
     int nb_entries= st->nb_index_entries;