Lines Matching refs:tss
1016 MpegTSSectionFilter *tss = &tss1->u.section_filter;
1021 memcpy(tss->section_buf, buf, buf_size);
1022 tss->section_index = buf_size;
1023 tss->section_h_size = -1;
1024 tss->end_of_section_reached = 0;
1026 if (tss->end_of_section_reached)
1028 len = MAX_SECTION_SIZE - tss->section_index;
1031 memcpy(tss->section_buf + tss->section_index, buf, len);
1032 tss->section_index += len;
1036 cur_section_buf = tss->section_buf;
1037 while (cur_section_buf - tss->section_buf < MAX_SECTION_SIZE && cur_section_buf[0] != 0xff) {
1039 if (tss->section_h_size == -1 && tss->section_index - offset >= 3) {
1043 tss->section_h_size = len;
1046 if (tss->section_h_size != -1 &&
1047 tss->section_index >= offset + tss->section_h_size) {
1049 tss->end_of_section_reached = 1;
1051 if (tss->check_crc) {
1052 crc_valid = !av_crc(av_crc_get_table(AV_CRC_32_IEEE), -1, cur_section_buf, tss->section_h_size);
1053 if (tss->section_h_size >= 4)
1054 tss->crc = AV_RB32(cur_section_buf + tss->section_h_size - 4);
1064 tss->section_cb(tss1, cur_section_buf, tss->section_h_size);
1066 tss->last_ver = -1;
1069 cur_section_buf += tss->section_h_size;
1070 offset += tss->section_h_size;
1071 tss->section_h_size = -1;
1073 tss->section_h_size = -1;
1074 tss->end_of_section_reached = 0;
2025 MpegTSFilter *tss;
2039 tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes);
2040 if (!tss) {
3402 MpegTSFilter *tss;
3409 tss = ts->pids[pid];
3410 if (ts->auto_guess && !tss && is_start) {
3412 tss = ts->pids[pid];
3414 if (!tss)
3417 tss->discard = discard_pid(ts, pid);
3418 if (tss->discard)
3433 expected_cc = has_payload ? (tss->last_cc + 1) & 0x0f : tss->last_cc;
3436 tss->last_cc < 0 ||
3439 tss->last_cc = cc;
3444 if (tss->type == MPEGTS_PES) {
3445 PESContext *pc = tss->u.pes_filter.opaque;
3452 if (tss->type == MPEGTS_PES) {
3453 PESContext *pc = tss->u.pes_filter.opaque;
3463 tss->last_pcr = pcr_h * 300 + pcr_l;
3477 if (tss->type == MPEGTS_SECTION) {
3485 write_section_data(ts, tss,
3493 write_section_data(ts, tss,
3498 write_section_data(ts, tss,
3520 if (tss->type == MPEGTS_PES) {
3521 if ((ret = tss->u.pes_filter.pes_cb(tss, p, p_end - p, is_start,