Lines Matching defs:tss
242 MpegTSSectionFilter *tss = &tss1->u.section_filter;
246 memcpy(tss->section_buf, buf, buf_size);
247 tss->section_index = buf_size;
248 tss->section_h_size = -1;
249 tss->end_of_section_reached = 0;
251 if (tss->end_of_section_reached)
253 len = 4096 - tss->section_index;
256 memcpy(tss->section_buf + tss->section_index, buf, len);
257 tss->section_index += len;
261 if (tss->section_h_size == -1 && tss->section_index >= 3) {
262 len = (AV_RB16(tss->section_buf + 1) & 0xfff) + 3;
265 tss->section_h_size = len;
268 if (tss->section_h_size != -1 && tss->section_index >= tss->section_h_size) {
269 tss->end_of_section_reached = 1;
270 if (!tss->check_crc ||
272 tss->section_buf, tss->section_h_size) == 0)
273 tss->section_cb(tss1, tss->section_buf, tss->section_h_size);
1026 MpegTSFilter *tss;
1038 tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes);
1039 if (!tss) {
1050 MpegTSFilter *tss;
1059 tss = ts->pids[pid];
1060 if (ts->auto_guess && tss == NULL && is_start) {
1062 tss = ts->pids[pid];
1064 if (!tss)
1069 cc_ok = (tss->last_cc < 0) || ((((tss->last_cc + 1) & 0x0f) == cc));
1070 tss->last_cc = cc;
1091 if (tss->type == MPEGTS_SECTION) {
1099 write_section_data(s, tss,
1107 write_section_data(s, tss,
1112 write_section_data(s, tss,
1118 tss->u.pes_filter.pes_cb(tss,