• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavformat/

Lines Matching refs:pid

77     int pid;
161 int pid;
212 static void add_pid_to_pmt(MpegTSContext *ts, unsigned int programid, unsigned int pid)
227 p->pids[p->nb_pids++] = pid;
231 * @brief discard_pid() decides if the pid is to be discarded according
234 * @param pid : - pid
235 * @return 1 if the pid is only comprised in programs that have .discard=AVDISCARD_ALL
238 static int discard_pid(MpegTSContext *ts, unsigned int pid)
246 if(p->pids[j] != pid)
305 static MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts, unsigned int pid,
313 av_dlog(ts->stream, "Filter: pid=0x%x\n", pid);
315 if (pid >= NB_PID_MAX || ts->pids[pid])
320 ts->pids[pid] = filter;
322 filter->pid = pid;
337 static MpegTSFilter *mpegts_open_pes_filter(MpegTSContext *ts, unsigned int pid,
344 if (pid >= NB_PID_MAX || ts->pids[pid])
349 ts->pids[pid] = filter;
351 filter->pid = pid;
362 int pid;
364 pid = filter->pid;
378 ts->pids[pid] = NULL;
589 "stream=%d stream_type=%x pid=%x prog_reg_desc=%.4s\n",
590 st->index, pes->stream_type, pes->pid, (char*)&prog_reg_desc);
614 sub_st->id = pes->pid;
781 av_dlog(pes->stream, "pid=%x pes_code=%#x\n", pes->pid, code);
792 pes->st->id = pes->pid;
813 av_dlog(pes->stream, "pid=%x stream_type=%x probing\n",
814 pes->pid, pes->stream_type);
938 static PESContext *add_pes_stream(MpegTSContext *ts, int pid, int pcr_pid)
943 /* if no pid found, then add a pid context */
949 pes->pid = pid;
954 tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes);
1182 int i, pid;
1194 for (pid = 0; pid < NB_PID_MAX; pid++) {
1195 if (!ts->pids[pid])
1200 if (ts->pids[pid]->es_id != mp4_descr[i].es_id)
1202 if (!(ts->pids[pid] && ts->pids[pid]->type == MPEGTS_PES)) {
1203 av_log(s, AV_LOG_ERROR, "pid %x is not PES\n", pid);
1206 pes = ts->pids[pid]->u.pes_filter.opaque;
1240 Mp4Descr *mp4_descr, int mp4_descr_count, int pid,
1267 if (ts && ts->pids[pid])
1268 ts->pids[pid]->es_id = desc_es_id;
1280 mpegts_open_section_filter(ts, pid, m4sl_cb, ts, 1);
1286 mp4_descr->dec_config_descr_len && mp4_descr->es_id == pid) {
1370 int program_info_length, pcr_pid, pid, stream_type;
1440 pid = get16(&p, p_end) & 0x1fff;
1441 if (pid < 0)
1445 if (ts->pids[pid] && ts->pids[pid]->type == MPEGTS_PES) {
1446 pes = ts->pids[pid]->u.pes_filter.opaque;
1449 pes->st->id = pes->pid;
1453 if (ts->pids[pid]) mpegts_close_filter(ts, ts->pids[pid]); //wrongly added sdt filter probably
1454 pes = add_pes_stream(ts, pid, pcr_pid);
1457 st->id = pes->pid;
1460 int idx = ff_find_stream_index(ts->stream, pid);
1465 st->id = pid;
1476 add_pid_to_pmt(ts, h->id, pid);
1488 mp4_descr, mp4_descr_count, pid, ts) < 0)
1530 av_dlog(ts->stream, "sid=0x%x pid=0x%x\n", sid, pmt_pid);
1540 add_pid_to_pmt(ts, sid, 0); //add pat pid to program
1627 int len, pid, cc, expected_cc, cc_ok, afc, is_start, is_discontinuity,
1632 pid = AV_RB16(packet + 1) & 0x1fff;
1633 if(pid && discard_pid(ts, pid))
1636 tss = ts->pids[pid];
1638 add_pes_stream(ts, pid, -1);
1639 tss = ts->pids[pid];
1656 cc_ok = pid == 0x1FFF // null packet PID
1664 "Continuity check failed for pid %d expected %d got %d\n",
1665 pid, expected_cc, cc);
1698 if (!ts->pids[pid])
1915 int pcr_pid, pid, nb_packets, nb_pcrs, ret, pcr_l;
1937 pid = AV_RB16(packet + 1) & 0x1fff;
1938 if ((pcr_pid == -1 || pcr_pid == pid) &&
1940 pcr_pid = pid;
2191 // pid = AV_RB16(buf + 1) & 0x1fff;