History

lavf: print a warning if probesize seems not enough.

Nicolas George committed 14 years ago

Commit 73bc0191 parent 4d870011 file · +6 −0Browse files

Unified · Split

libavformat/utils.c+6−0
@@ -2522,6 +2522,12 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) · 2521 unmodified lines
2522 if (read_size >= ic->probesize) {2522 if (read_size >= ic->probesize) {
2523 ret = count;2523 ret = count;
2524 av_log(ic, AV_LOG_DEBUG, "Probe buffer size limit %d reached\n", ic->probesize);2524 av_log(ic, AV_LOG_DEBUG, "Probe buffer size limit %d reached\n", ic->probesize);
2525 for (i = 0; i < ic->nb_streams; i++)
2526 if (!ic->streams[i]->r_frame_rate.num &&
2527 ic->streams[i]->info->duration_count <= 1)
2528 av_log(ic, AV_LOG_WARNING,
2529 "Stream #%d: not enough frames to estimate rate; "
2530 "consider increasing probesize\n", i);
2525 break;2531 break;
2526 }2532 }
2527 2533

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t