[FFmpeg-devel] [PATCH]Do not suggest to increase the probesize for image2 files

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Sep 16 09:50:52 CEST 2013


Hi!

Attached patch silences a warning when reading image files that I suspect does 
not help (in that case).

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/utils.c b/libavformat/utils.c
index af0284d..ca8d845 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2779,7 +2779,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
             av_log(ic, AV_LOG_DEBUG, "Probe buffer size limit of %d bytes reached\n", ic->probesize);
             for (i = 0; i < ic->nb_streams; i++)
                 if (!ic->streams[i]->r_frame_rate.num &&
-                    ic->streams[i]->info->duration_count <= 1)
+                    ic->streams[i]->info->duration_count <= 1 &&
+                    strcmp(ic->iformat->name, "image2"))
                     av_log(ic, AV_LOG_WARNING,
                            "Stream #%d: not enough frames to estimate rate; "
                            "consider increasing probesize\n", i);


More information about the ffmpeg-devel mailing list