only drop from video
This commit is contained in:
parent
a5985359a4
commit
48c5bf28df
1 changed files with 5 additions and 2 deletions
7
tsmux.c
7
tsmux.c
|
@ -375,8 +375,11 @@ ts_mux_packet(th_muxer_t *tm, int64_t pcr, uint8_t *outbuf, int maxblocks)
|
|||
|
||||
/* Periodic drop (for testing purposes) */
|
||||
|
||||
if(i != 0 && i != maxblocks - 1 &&
|
||||
tm->tm_drop_rate && ++tm->tm_drop_cnt == tm->tm_drop_rate) {
|
||||
if(tm->tm_drop_rate && i != 0 && i != maxblocks - 1 &&
|
||||
tms->tms_stream &&
|
||||
(tms->tms_stream->st_type == HTSTV_H264 ||
|
||||
tms->tms_stream->st_type == HTSTV_MPEG2VIDEO) &&
|
||||
++tm->tm_drop_cnt == tm->tm_drop_rate) {
|
||||
tm->tm_drop_cnt = 0;
|
||||
i--;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue