Correct (and simplify) mistake in moving of memory at end of partial processing.
This commit is contained in:
parent
b365cd1ac7
commit
ebf95d7951
1 changed files with 2 additions and 4 deletions
|
@ -778,10 +778,8 @@ dvb_adapter_input_dvr(void *aux)
|
|||
pthread_mutex_unlock(&tda->tda_delivery_mutex);
|
||||
|
||||
/* reset buffer */
|
||||
if (r && r < i) {
|
||||
memcpy(tsb, tsb+i, r);
|
||||
i = 0;
|
||||
}
|
||||
if (r) {memmove(tsb, tsb+i, r);printf("move");}
|
||||
i = 0;
|
||||
}
|
||||
|
||||
close(efd);
|
||||
|
|
Loading…
Add table
Reference in a new issue