diff options
author | Frank Schmirler <vdr@schmirler.de> | 2017-01-20 16:15:19 +0100 |
---|---|---|
committer | Frank Schmirler <vdr@schmirler.de> | 2017-01-20 16:15:19 +0100 |
commit | b84b7d858cf4f6f3473ba72d456326c048946cb0 (patch) | |
tree | d44f68c7abb71b22fd47bf8bb86934e2ae6c0004 | |
parent | 674bb5b331240de3ba2a8beb63a1276003e64e3e (diff) | |
download | vdr-plugin-streamdev-b84b7d858cf4f6f3473ba72d456326c048946cb0.tar.gz vdr-plugin-streamdev-b84b7d858cf4f6f3473ba72d456326c048946cb0.tar.bz2 |
fixed lseek error check in libdvbmpeg
-rw-r--r-- | CONTRIBUTORS | 3 | ||||
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | libdvbmpeg/ctools.c | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 81adff9..2a5155f 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -251,3 +251,6 @@ Christopher Reimer Matthias Senzel for refining the compatibility patch for VDR 2.3.1 + +David Binderman + for fixing an lseek error check in libdvbmpeg @@ -1,6 +1,7 @@ VDR Plugin 'streamdev' Revision History --------------------------------------- +- fixed lseek error check in libdvbmpeg (thanks to David Binderman) - server compatibility with VDR 2.3.1 (thanks to Christopher Reimer and Matthias Senzel) - client compatibility with VDR 2.3.1 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]; |