Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ff_asf_guid g;
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
- int ret = 0;
+ int64_t ret;
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
return ret;
/* Try using the protocol's read_seek if available */
if (s->pb) {
- int ret = avio_seek_time(s->pb, stream_index, pts, flags);
+ int64_t ret = avio_seek_time(s->pb, stream_index, pts, flags);
if (ret >= 0)
asf_reset_header(s);
if (ret != AVERROR(ENOSYS))