Mercurial > libavformat.hg
diff mov.c @ 1114:c25f3b5b9a5c libavformat
check fseek return value
author | bcoudurier |
---|---|
date | Tue, 13 Jun 2006 23:13:59 +0000 |
parents | f3088e843a35 |
children | 59b4933626df |
line wrap: on
line diff
--- a/mov.c Tue Jun 13 22:49:05 2006 +0000 +++ b/mov.c Tue Jun 13 23:13:59 2006 +0000 @@ -1733,6 +1733,7 @@ int next_sample= -99; int size; int idx; + int ret; size = 0x0FFFFFFF; if (mov->partial) { @@ -1858,8 +1859,9 @@ return -1; if(size == 0) return -1; - url_fseek(&s->pb, offset, SEEK_SET); - + ret = url_fseek(&s->pb, offset, SEEK_SET); + if (ret < 0) + return ret; av_get_packet(&s->pb, pkt, size); pkt->stream_index = sc->ffindex;