[FFmpeg-soc] [soc]: r1931 - libavfilter/vsrc_movie.c

koorogi subversion at mplayerhq.hu
Wed Feb 27 23:32:06 CET 2008


Author: koorogi
Date: Wed Feb 27 23:32:06 2008
New Revision: 1931

Log:
Fix warning about 64-bit types in printf/scanf functions.


Modified:
   libavfilter/vsrc_movie.c

Modified: libavfilter/vsrc_movie.c
==============================================================================
--- libavfilter/vsrc_movie.c	(original)
+++ libavfilter/vsrc_movie.c	Wed Feb 27 23:32:06 2008
@@ -117,7 +117,7 @@ int movie_init(AVFilterContext *ctx)
         if (mv->pFormatCtx->start_time != AV_NOPTS_VALUE)
             timestamp += mv->pFormatCtx->start_time;
         if (av_seek_frame(mv->pFormatCtx, -1, timestamp, AVSEEK_FLAG_BACKWARD) < 0) {
-            av_log(ctx, AV_LOG_ERROR, "%s: could not seek to position %lld\n",
+            av_log(ctx, AV_LOG_ERROR, "%s: could not seek to position %"PRId64"\n",
                 mv->file_name, timestamp);
         }
     }
@@ -171,7 +171,7 @@ static int init(AVFilterContext *ctx, co
     MovieContext *mv = ctx->priv;
 
     if(args) {
-        int num_fields = sscanf(args, "%lld:%15[^:]:%255s",
+        int num_fields = sscanf(args, "%"PRId64":%15[^:]:%255s",
                             &mv->seek_point, mv->format_name, mv->file_name);
         if (3 == num_fields)
             /* av_log(ctx, AV_LOG_INFO,



More information about the FFmpeg-soc mailing list