diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-30 20:58:52 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-30 20:58:52 +0400 |
commit | ac2d3b0f6e475be8feeb6d39e880281ee8a7106b (patch) | |
tree | 5042e8becd884cfec706f9a1a4b1e15f96399eaf /libavformat/nutdec.c | |
parent | 3233ad4b446396766065978c0933155dee8fbff4 (diff) |
nutdec: set duration_estimation_method
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/nutdec.c')
-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; } |