# HG changeset patch # User daniel # Date 1260057833 0 # Node ID 58fb1f12d94fc5100b6395d278ab2a9bb20cf63d # Parent 9d7de5529047f733d1106898c548a89a96ff8865 Calls to url_fseek should have their return value checked in av_seek_frame_binary, just as they do in av_seek_frame_generic. Otherwise, function may return success even though url_fseek reported failure. Patch by Sean Soria, first.last at gmail diff -r 9d7de5529047 -r 58fb1f12d94f utils.c --- a/utils.c Fri Dec 04 16:52:42 2009 +0000 +++ b/utils.c Sun Dec 06 00:03:53 2009 +0000 @@ -1311,6 +1311,7 @@ int64_t av_uninit(pos_min), av_uninit(pos_max), pos, pos_limit; int64_t ts_min, ts_max, ts; int index; + int64_t ret; AVStream *st; if (stream_index < 0) @@ -1363,7 +1364,8 @@ return -1; /* do the seek */ - url_fseek(s->pb, pos, SEEK_SET); + if ((ret = url_fseek(s->pb, pos, SEEK_SET)) < 0) + return ret; av_update_cur_dts(s, st, ts);