summaryrefslogtreecommitdiff
path: root/libdvbmpeg
diff options
context:
space:
mode:
Diffstat (limited to 'libdvbmpeg')
-rw-r--r--libdvbmpeg/ctools.c6
-rw-r--r--libdvbmpeg/remux.c2
2 files changed, 2 insertions, 6 deletions
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;