aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-04-11 01:09:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-19 01:29:35 +0200
commit007989c7a2215f54aeaf2393ab3aff0c208e862f (patch)
tree41dfc2d0842b7cbff51768fd983b3f24f9e23232 /libavformat
parenta39cd8766fba7d8e4f7c177c13361058d4158ba0 (diff)
downloadffmpeg-007989c7a2215f54aeaf2393ab3aff0c208e862f.tar.gz
mxfdec: fix return variable type for avio_seek
Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mxfdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 33e1eb4b85..666e9c1af2 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -2441,6 +2441,7 @@ 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;
@@ -2455,8 +2456,8 @@ 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 ((ret = avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET)) < 0)
- return ret;
+ if ((ret64 = avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET)) < 0)
+ return ret64;
ff_update_cur_dts(s, st, sample_time);
mxf->current_edit_unit = sample_time;
} else {