• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/

Lines Matching refs:pid

86     int pid;
209 int pid;
291 unsigned int pid)
299 p->pids[p->nb_pids++] = pid;
311 static void set_pcr_pid(AVFormatContext *s, unsigned int programid, unsigned int pid)
316 s->programs[i]->pcr_pid = pid;
323 * @brief discard_pid() decides if the pid is to be discarded according
326 * @param pid : - pid
327 * @return 1 if the pid is only comprised in programs that have .discard=AVDISCARD_ALL
330 static int discard_pid(MpegTSContext *ts, unsigned int pid)
347 if (p->pids[j] != pid)
405 ts->crc_validity[ tss1->pid ] = 100;
406 }else if (ts->crc_validity[ tss1->pid ] > -10) {
407 ts->crc_validity[ tss1->pid ]--;
416 static MpegTSFilter *mpegts_open_filter(MpegTSContext *ts, unsigned int pid,
421 av_dlog(ts->stream, "Filter: pid=0x%x\n", pid);
423 if (pid >= NB_PID_MAX || ts->pids[pid])
428 ts->pids[pid] = filter;
431 filter->pid = pid;
440 unsigned int pid,
448 if (!(filter = mpegts_open_filter(ts, pid, MPEGTS_SECTION)))
462 static MpegTSFilter *mpegts_open_pes_filter(MpegTSContext *ts, unsigned int pid,
469 if (!(filter = mpegts_open_filter(ts, pid, MPEGTS_PES)))
478 static MpegTSFilter *mpegts_open_pcr_filter(MpegTSContext *ts, unsigned int pid)
480 return mpegts_open_filter(ts, pid, MPEGTS_PCR);
485 int pid;
487 pid = filter->pid;
501 ts->pids[pid] = NULL;
755 "stream=%d stream_type=%x pid=%x prog_reg_desc=%.4s\n",
756 st->index, pes->stream_type, pes->pid, (char *)&prog_reg_desc);
781 sub_st->id = pes->pid;
955 av_dlog(pes->stream, "pid=%x pes_code=%#x\n", pes->pid,
972 pes->st->id = pes->pid;
995 "pid=%x stream_type=%x probing\n",
996 pes->pid,
1169 static PESContext *add_pes_stream(MpegTSContext *ts, int pid, int pcr_pid)
1174 /* if no pid found, then add a pid context */
1180 pes->pid = pid;
1185 tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes);
1435 int i, pid;
1448 for (pid = 0; pid < NB_PID_MAX; pid++) {
1449 if (!ts->pids[pid])
1454 if (ts->pids[pid]->es_id != mp4_descr[i].es_id)
1456 if (ts->pids[pid]->type != MPEGTS_PES) {
1457 av_log(s, AV_LOG_ERROR, "pid %x is not PES\n", pid);
1460 pes = ts->pids[pid]->u.pes_filter.opaque;
1494 Mp4Descr *mp4_descr, int mp4_descr_count, int pid,
1521 if (ts && ts->pids[pid])
1522 ts->pids[pid]->es_id = desc_es_id;
1535 mpegts_open_section_filter(ts, pid, m4sl_cb, ts, 1);
1542 mp4_descr->dec_config_descr_len && mp4_descr->es_id == pid) {
1717 int program_info_length, pcr_pid, pid, stream_type;
1795 pid = get16(&p, p_end);
1796 if (pid < 0)
1798 pid &= 0x1fff;
1799 if (pid == ts->current_pid)
1803 if (ts->pids[pid] && ts->pids[pid]->type == MPEGTS_PES) {
1804 pes = ts->pids[pid]->u.pes_filter.opaque;
1809 pes->st->id = pes->pid;
1813 if (ts->pids[pid])
1814 mpegts_close_filter(ts, ts->pids[pid]); // wrongly added sdt filter probably
1815 pes = add_pes_stream(ts, pid, pcr_pid);
1820 st->id = pes->pid;
1823 int idx = ff_find_stream_index(ts->stream, pid);
1830 st->id = pid;
1841 add_pid_to_pmt(ts, h->id, pid);
1855 mp4_descr_count, pid, ts) < 0)
1911 av_dlog(ts->stream, "sid=0x%x pid=0x%x\n", sid, pmt_pid);
1922 || fil->pid != pmt_pid
1929 add_pid_to_pmt(ts, sid, 0); // add pat pid to program
2033 int len, pid, cc, expected_cc, cc_ok, afc, is_start, is_discontinuity,
2038 pid = AV_RB16(packet + 1) & 0x1fff;
2039 if (pid && discard_pid(ts, pid))
2042 tss = ts->pids[pid];
2044 add_pes_stream(ts, pid, -1);
2045 tss = ts->pids[pid];
2049 ts->current_pid = pid;
2063 cc_ok = pid == 0x1FFF || // null packet PID
2071 "Continuity check failed for pid %d expected %d got %d\n",
2072 pid, expected_cc, cc);
2108 if (!ts->pids[pid])
2410 int pcr_pid, pid, nb_packets, nb_pcrs, ret, pcr_l;
2433 pid = AV_RB16(data + 1) & 0x1fff;
2434 if ((pcr_pid == -1 || pcr_pid == pid) &&
2437 pcr_pid = pid;