nutdec: set duration_estimation_method
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3233ad4b44
commit
ac2d3b0f6e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user