Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
descrambler: fix the wrong cut on the buffered data
  • Loading branch information
perexg committed Mar 23, 2015
1 parent c54f9b0 commit 02a9b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/descrambler/descrambler.c
Expand Up @@ -432,7 +432,7 @@ descrambler_descramble ( service_t *t,
((mpegts_service_t *)t)->s_dvb_svcname);
if (key_late(dr, ki)) {
if (ecm_reset(t, dr)) {
sbuf_cut(&dr->dr_buf, tsb2 - tsb);
sbuf_cut(&dr->dr_buf, tsb2 - dr->dr_buf.sb_data);
flush_data = 1;
goto next;
}
Expand Down

0 comments on commit 02a9b02

Please sign in to comment.