mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
fixed some warnings in libdvbmpeg (thanks to Jasmin J)
This commit is contained in:
parent
b84b7d858c
commit
95256a52cf
@ -254,3 +254,6 @@ Matthias Senzel
|
||||
|
||||
David Binderman
|
||||
for fixing an lseek error check in libdvbmpeg
|
||||
|
||||
Jasmin J
|
||||
for fixing some warnings in libdvbmpeg
|
||||
|
1
HISTORY
1
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)
|
||||
|
@ -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 ) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user