diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2a5155f..8b794bb 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -254,3 +254,6 @@ Matthias Senzel David Binderman for fixing an lseek error check in libdvbmpeg + +Jasmin J + for fixing some warnings in libdvbmpeg diff --git a/HISTORY b/HISTORY index cfed92c..7aef949 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,7 @@ VDR Plugin 'streamdev' Revision History --------------------------------------- +- fixed some warnings in libdvbmpeg (thanks to Jasmin J) - fixed lseek error check in libdvbmpeg (thanks to David Binderman) - server compatibility with VDR 2.3.1 (thanks to Christopher Reimer and Matthias Senzel) diff --git a/libdvbmpeg/ctools.c b/libdvbmpeg/ctools.c index f373204..514484a 100644 --- a/libdvbmpeg/ctools.c +++ b/libdvbmpeg/ctools.c @@ -298,7 +298,6 @@ void write_pes(int fd, pes_packet *p){ } static unsigned int find_length(int f){ - uint64_t p = 0; uint64_t start = 0; uint64_t q = 0; int found = 0; @@ -309,7 +308,7 @@ static unsigned int find_length(int f){ start -=2; lseek(f,start,SEEK_SET); while ( neof > 0 && !found ){ - p = lseek(f,0,SEEK_CUR); + lseek(f,0,SEEK_CUR); neof = save_read(f,&sync4,4); if (sync4[0] == 0x00 && sync4[1] == 0x00 && sync4[2] == 0x01) { switch ( sync4[3] ) { @@ -1334,7 +1333,7 @@ void tfilter(trans *p) { int l,c; int tpid; - uint8_t flag,flags; + uint8_t flags; uint8_t adapt_length = 0; uint8_t cpid[2]; @@ -1350,7 +1349,6 @@ void tfilter(trans *p) tpid); } - flag = cpid[0]; flags = p->packet[3]; if ( flags & ADAPT_FIELD ) { diff --git a/libdvbmpeg/remux.c b/libdvbmpeg/remux.c index b37de3a..ea22a29 100644 --- a/libdvbmpeg/remux.c +++ b/libdvbmpeg/remux.c @@ -756,7 +756,6 @@ int write_video_pes( Remux *rem, uint8_t *buf, int *vlength) int pos = 0; int p = 0; uint32_t pts = 0; - uint32_t dts = 0; int stuff = 0; int length = *vlength; long diff = 0; @@ -787,7 +786,6 @@ int write_video_pes( Remux *rem, uint8_t *buf, int *vlength) if (add < 0) return -1; pos += add; rem->vpts_old = rem->vpts; - dts = rem->vdts; rem->vpts = rem->vpts_list[0].PTS; rem->vdts = rem->vpts_list[0].dts; if ( diff > 0) rem->SCR += diff;