diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-12-20 00:25:18 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-12-20 00:25:18 +0000 |
commit | fd2982a0a01942091b2f08e17486ff4562f675a6 (patch) | |
tree | c5627d5cf2603e1e890e9a38c2ff916ffc8b983a /libavformat/asf.c | |
parent | 17e45b377ca2d2b400424b82db01c22567f09780 (diff) | |
download | ffmpeg-fd2982a0a01942091b2f08e17486ff4562f675a6.tar.gz |
remove double check of pb->read_seek
Originally committed as revision 11278 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf.c')
-rw-r--r-- | libavformat/asf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/asf.c b/libavformat/asf.c index 2316ed570f..c614cb5854 100644 --- a/libavformat/asf.c +++ b/libavformat/asf.c @@ -1050,10 +1050,11 @@ static int asf_read_seek(AVFormatContext *s, int stream_index, int64_t pts, int return -1; /* Try using the protocol's read_seek if available */ - if(s->pb && s->pb->read_seek) { + if(s->pb) { int ret = av_url_read_fseek(s->pb, stream_index, pts, flags); if(ret >= 0) asf_reset_header(s); + if (ret != AVERROR(ENOSYS)) return ret; } |