diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-04 18:01:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-04 18:01:32 +0100 |
commit | faa0068a8755ff44908974293acc1a0a7fdae9be (patch) | |
tree | 14086856486133ed5d7d35a526ad9b8f5edb876d /libavformat/avformat.h | |
parent | 9bb54bb68529114677b3764aa264ef0bf293557d (diff) | |
download | ffmpeg-faa0068a8755ff44908974293acc1a0a7fdae9be.tar.gz |
avformat: Make duration estimation from pts more robust
Ignore durations which differ significantly from the previous
Fixes Ticket2018
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 9b72279a89..d23d0e87f1 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -759,6 +759,8 @@ typedef struct AVStream { int64_t codec_info_duration_fields; int found_decoder; + int64_t last_duration; + /** * Those are used for average framerate estimation. */ |