Browse Source

Remove commented code

Georgi Chorbadzhiyski 9 years ago
parent
commit
bd62f2df72
1 changed files with 0 additions and 23 deletions
  1. 0
    23
      tsfuncs_pmt.c

+ 0
- 23
tsfuncs_pmt.c View File

@@ -266,29 +266,6 @@ void ts_pmt_dump(struct ts_pmt *pmt) {
266 266
 	ts_pmt_check_generator(pmt);
267 267
 }
268 268
 
269
-/*
270
-int parse_pmt(uint8_t *ts_packet, uint16_t pmt_pid, uint16_t *pcr_pid, uint16_t *video_pid, uint16_t *audio_pid, int dump) {
271
-	struct ts_pmt *pmt = calloc(1, sizeof(struct ts_pmt));
272
-	int ret = ts_pmt_init(pmt, pmt_pid, ts_packet);
273
-	if (ret) {
274
-		int i;
275
-		*pcr_pid = pmt->PCR_pid;
276
-		for (i=0;i<pmt->streams_num;i++) {
277
-			struct ts_pmt_stream *stream = pmt->streams[i];
278
-			if (ts_is_stream_type_video(stream->stream_type))
279
-				*video_pid = stream->pid;
280
-			if (ts_is_stream_type_audio(stream->stream_type))
281
-				*audio_pid = stream->pid;
282
-		}
283
-	}
284
-	if (dump)
285
-		ts_pmt_dump(pmt);
286
-	ts_pmt_free(&pmt);
287
-	return ret;
288
-}
289
-
290
-*/
291
-
292 269
 int ts_pmt_is_same(struct ts_pmt *pmt1, struct ts_pmt *pmt2) {
293 270
 	return ts_section_is_same(pmt1->section_header, pmt2->section_header);
294 271
 }

Loading…
Cancel
Save