OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d87001
)
lavf: print a warning if probesize seems not enough.
author
Nicolas George
<nicolas.george@normalesup.org>
Sat, 21 Apr 2012 10:05:23 +0000
(12:05 +0200)
committer
Nicolas George
<nicolas.george@normalesup.org>
Mon, 23 Apr 2012 10:26:19 +0000
(12:26 +0200)
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
1bf5ac5
..
de0cb54
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-2522,6
+2522,12
@@
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
if (read_size >= ic->probesize) {
ret = count;
av_log(ic, AV_LOG_DEBUG, "Probe buffer size limit %d 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)
+ av_log(ic, AV_LOG_WARNING,
+ "Stream #%d: not enough frames to estimate rate; "
+ "consider increasing probesize\n", i);
break;
}