From b84b7d858cf4f6f3473ba72d456326c048946cb0 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Fri, 20 Jan 2017 16:15:19 +0100 Subject: fixed lseek error check in libdvbmpeg --- libdvbmpeg/ctools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdvbmpeg') diff --git a/libdvbmpeg/ctools.c b/libdvbmpeg/ctools.c index 185ba45..f373204 100644 --- a/libdvbmpeg/ctools.c +++ b/libdvbmpeg/ctools.c @@ -558,7 +558,7 @@ int read_pes(int f, pes_packet *p){ while (neof > 0 && !found) { po = lseek(f,0,SEEK_CUR); - if (po < 0) return -1; + if (po == (off_t) -1) return -1; if ((neof = save_read(f,&sync4,4)) < 4) return -1; if (sync4[0] == 0x00 && sync4[1] == 0x00 && sync4[2] == 0x01) { p->stream_id = sync4[3]; -- cgit v1.2.3