You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf: print a warning if probesize seems not enough.
This commit is contained in:
@@ -2522,6 +2522,12 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
if (read_size >= ic->probesize) {
|
if (read_size >= ic->probesize) {
|
||||||
ret = count;
|
ret = count;
|
||||||
av_log(ic, AV_LOG_DEBUG, "Probe buffer size limit %d reached\n", ic->probesize);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user