# HG changeset patch # User benoit # Date 1212054617 0 # Node ID 3fbe87561b7358276ec23a23f39e1c4425fcfea7 # Parent 76918939de90c5a36fd590db373a90396b7eb907 Check return of url_fseek in mpeg timestamp reading code. Patch by Joakim elupus ecce se diff -r 76918939de90 -r 3fbe87561b73 mpeg.c --- a/mpeg.c Thu May 29 00:58:41 2008 +0000 +++ b/mpeg.c Thu May 29 09:50:17 2008 +0000 @@ -557,7 +557,9 @@ #ifdef DEBUG_SEEK printf("read_dts: pos=0x%"PRIx64" next=%d -> ", pos, find_next); #endif - url_fseek(s->pb, pos, SEEK_SET); + if (url_fseek(s->pb, pos, SEEK_SET) < 0) + return AV_NOPTS_VALUE; + for(;;) { len = mpegps_read_pes_header(s, &pos, &startcode, &pts, &dts); if (len < 0) {