Mercurial > libavformat.hg
comparison asf.c @ 2842:bc317b8d7090 libavformat
remove double check of pb->read_seek
author | aurel |
---|---|
date | Thu, 20 Dec 2007 00:25:18 +0000 |
parents | f717dd23fc23 |
children | 7a6b7595f933 |
comparison
equal
deleted
inserted
replaced
2841:a41a1ec2213c | 2842:bc317b8d7090 |
---|---|
1048 | 1048 |
1049 if (asf->packet_size <= 0) | 1049 if (asf->packet_size <= 0) |
1050 return -1; | 1050 return -1; |
1051 | 1051 |
1052 /* Try using the protocol's read_seek if available */ | 1052 /* Try using the protocol's read_seek if available */ |
1053 if(s->pb && s->pb->read_seek) { | 1053 if(s->pb) { |
1054 int ret = av_url_read_fseek(s->pb, stream_index, pts, flags); | 1054 int ret = av_url_read_fseek(s->pb, stream_index, pts, flags); |
1055 if(ret >= 0) | 1055 if(ret >= 0) |
1056 asf_reset_header(s); | 1056 asf_reset_header(s); |
1057 if (ret != AVERROR(ENOSYS)) | |
1057 return ret; | 1058 return ret; |
1058 } | 1059 } |
1059 | 1060 |
1060 if (!asf->index_read) | 1061 if (!asf->index_read) |
1061 asf_build_simple_index(s, stream_index); | 1062 asf_build_simple_index(s, stream_index); |