nutdec: set duration_estimation_method

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-06-30 18:58:52 +02:00
parent 3233ad4b44
commit ac2d3b0f6e
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}