diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-21 12:05:23 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-04-23 12:26:19 +0200 |
commit | 73bc019baf421bc954439d03b51984ff118e4fe1 (patch) | |
tree | 8120a9f560661ab3fdd021310ad76a7aca36b6f2 /libavformat | |
parent | 4d87001096ff1d4e3ee6f88f8caddbd8ccb2c816 (diff) | |
download | ffmpeg-73bc019baf421bc954439d03b51984ff118e4fe1.tar.gz |
lavf: print a warning if probesize seems not enough.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 1bf5ac5dd4..de0cb5432e 100644 --- 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; } |