diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-30 18:58:52 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-30 18:58:52 +0200 |
commit | ac2d3b0f6e475be8feeb6d39e880281ee8a7106b (patch) | |
tree | 5042e8becd884cfec706f9a1a4b1e15f96399eaf | |
parent | 3233ad4b446396766065978c0933155dee8fbff4 (diff) | |
download | ffmpeg-ac2d3b0f6e475be8feeb6d39e880281ee8a7106b.tar.gz |
nutdec: set duration_estimation_method
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/nutdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 88eb3b89ff..f3da58acfa 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -568,6 +568,8 @@ static int64_t find_duration(NUTContext *nut, int64_t filesize) duration = FFMAX(duration, ts); pos++; } + if(duration > 0) + s->duration_estimation_method = AVFMT_DURATION_FROM_PTS; return duration; } |