Skip to content
Snippets Groups Projects
Commit 42f91322 authored by Luca Barbato's avatar Luca Barbato
Browse files

mxf: Do not use int to check the seek position


Overly large files are to be expected.

Reported-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d84bd465
No related branches found
No related tags found
No related merge requests found
...@@ -2238,8 +2238,10 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti ...@@ -2238,8 +2238,10 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
sample_time = 0; sample_time = 0;
seconds = av_rescale(sample_time, st->time_base.num, st->time_base.den); seconds = av_rescale(sample_time, st->time_base.num, st->time_base.den);
if ((ret = avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET)) < 0) seekpos = avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET);
return ret; if (seekpos < 0)
return seekpos;
ff_update_cur_dts(s, st, sample_time); ff_update_cur_dts(s, st, sample_time);
mxf->current_edit_unit = sample_time; mxf->current_edit_unit = sample_time;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment