mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-28 16:02:17 +02:00
lavf: dont try to find fps for attached pictures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7ac3ccc5f2
commit
4a6fa7963b
@ -2769,6 +2769,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
fps_analyze_framecount *= 2;
|
fps_analyze_framecount *= 2;
|
||||||
if (ic->fps_probe_size >= 0)
|
if (ic->fps_probe_size >= 0)
|
||||||
fps_analyze_framecount = ic->fps_probe_size;
|
fps_analyze_framecount = ic->fps_probe_size;
|
||||||
|
if (st->disposition & AV_DISPOSITION_ATTACHED_PIC)
|
||||||
|
fps_analyze_framecount = 0;
|
||||||
/* variable fps and no guess at the real fps */
|
/* variable fps and no guess at the real fps */
|
||||||
if( tb_unreliable(st->codec) && !(st->r_frame_rate.num && st->avg_frame_rate.num)
|
if( tb_unreliable(st->codec) && !(st->r_frame_rate.num && st->avg_frame_rate.num)
|
||||||
&& st->info->duration_count < fps_analyze_framecount
|
&& st->info->duration_count < fps_analyze_framecount
|
||||||
|
Loading…
Reference in New Issue
Block a user