mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/oggdec: Skip streams in duration correction that did not had their duration set.
Fixes: part of 670190.ogg Fixes integer overflow Found-by: Matt Wolenetz <wolenetz@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4413e950b2
commit
ee2a6f5df8
@ -643,6 +643,8 @@ static int ogg_get_length(AVFormatContext *s)
|
||||
int64_t pts;
|
||||
if (i < 0) continue;
|
||||
pts = ogg_calc_pts(s, i, NULL);
|
||||
if (s->streams[i]->duration == AV_NOPTS_VALUE)
|
||||
continue;
|
||||
if (pts != AV_NOPTS_VALUE && s->streams[i]->start_time == AV_NOPTS_VALUE && !ogg->streams[i].got_start) {
|
||||
s->streams[i]->duration -= pts;
|
||||
ogg->streams[i].got_start= 1;
|
||||
|
Loading…
Reference in New Issue
Block a user