fixed some warnings in libdvbmpeg (thanks to Jasmin J)

This commit is contained in:
Frank Schmirler 2017-09-30 21:27:51 +02:00
parent b84b7d858c
commit 95256a52cf
4 changed files with 6 additions and 6 deletions

View File

@ -254,3 +254,6 @@ Matthias Senzel
David Binderman
for fixing an lseek error check in libdvbmpeg
Jasmin J
for fixing some warnings in libdvbmpeg

View File

@ -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)

View File

@ -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 ) {

View File

@ -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;