mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
Merge commit '42f9132218ca11a8e9a3c82a175b46bca092113e'
* commit '42f9132218ca11a8e9a3c82a175b46bca092113e':
mxf: Do not use int to check the seek position
Conflicts:
libavformat/mxfdec.c
See: 007989c7a2
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
1171ad647e
@ -2497,7 +2497,6 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
|
||||
MXFContext* mxf = s->priv_data;
|
||||
int64_t seekpos;
|
||||
int i, ret;
|
||||
int64_t ret64;
|
||||
MXFIndexTable *t;
|
||||
MXFTrack *source_track = st->priv_data;
|
||||
|
||||
@ -2512,8 +2511,10 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
|
||||
sample_time = 0;
|
||||
seconds = av_rescale(sample_time, st->time_base.num, st->time_base.den);
|
||||
|
||||
if ((ret64 = avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET)) < 0)
|
||||
return ret64;
|
||||
seekpos = avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET);
|
||||
if (seekpos < 0)
|
||||
return seekpos;
|
||||
|
||||
ff_update_cur_dts(s, st, sample_time);
|
||||
mxf->current_edit_unit = sample_time;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user