avformat/idcin: Use 64bit for ret to avoid overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-02-20 20:13:06 +01:00
parent 0e3d6e17de
commit d1923d15a3
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ static int idcin_read_seek(AVFormatContext *s, int stream_index,
IdcinDemuxContext *idcin = s->priv_data; IdcinDemuxContext *idcin = s->priv_data;
if (idcin->first_pkt_pos > 0) { if (idcin->first_pkt_pos > 0) {
int ret = avio_seek(s->pb, idcin->first_pkt_pos, SEEK_SET); int64_t ret = avio_seek(s->pb, idcin->first_pkt_pos, SEEK_SET);
if (ret < 0) if (ret < 0)
return ret; return ret;
ff_update_cur_dts(s, s->streams[idcin->video_stream_index], 0); ff_update_cur_dts(s, s->streams[idcin->video_stream_index], 0);