changeset 597:d814669d2c13 libavformat

int / int64 fix by (Wolfram Gloger <wmglo @@@ dent:med:uni-muenchen:de>)
author michael
date Tue, 23 Nov 2004 18:23:56 +0000
parents a966fb81b076
children 4c53352471f2
files avformat.h utils.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avformat.h	Sun Nov 21 03:37:33 2004 +0000
+++ b/avformat.h	Tue Nov 23 18:23:56 2004 +0000
@@ -583,7 +583,7 @@
 #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);
--- a/utils.c	Sun Nov 21 03:37:33 2004 +0000
+++ b/utils.c	Tue Nov 23 18:23:56 2004 +0000
@@ -1046,7 +1046,8 @@
  *                 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;