aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-07-31 18:12:37 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-07-31 18:12:37 +0000
commitd701934bef6ff6868c0a2179b7b9105c7a49b41f (patch)
treea283db96608422e6daf73a70cbed370ef0424cdb
parentaaec4e03e91f3f301d5720429a5da99b44e7e1bb (diff)
downloadffmpeg-d701934bef6ff6868c0a2179b7b9105c7a49b41f.tar.gz
check url_fseek return value
Originally committed as revision 14490 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/raw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c
index bb1345a043..6f73379274 100644
--- a/libavformat/raw.c
+++ b/libavformat/raw.c
@@ -221,7 +221,7 @@ int pcm_read_seek(AVFormatContext *s,
int stream_index, int64_t timestamp, int flags)
{
AVStream *st;
- int block_align, byte_rate;
+ int block_align, byte_rate, ret;
int64_t pos;
st = s->streams[0];
@@ -243,7 +243,8 @@ int pcm_read_seek(AVFormatContext *s,
/* recompute exact position */
st->cur_dts = av_rescale(pos, st->time_base.den, byte_rate * (int64_t)st->time_base.num);
- url_fseek(s->pb, pos + s->data_offset, SEEK_SET);
+ if ((ret = url_fseek(s->pb, pos + s->data_offset, SEEK_SET)) < 0)
+ return ret;
return 0;
}