| 357 | } |
| 358 | |
| 359 | static int index_of_pid(hb_stream_t *stream, int pid) |
| 360 | { |
| 361 | int i; |
| 362 | |
| 363 | for ( i = 0; i < stream->ts.count; ++i ) |
| 364 | { |
| 365 | if ( pid == stream->ts.list[i].pid ) |
| 366 | { |
| 367 | return i; |
| 368 | } |
| 369 | } |
| 370 | |
| 371 | return -1; |
| 372 | } |
| 373 | |
| 374 | static int index_of_ps_stream(hb_stream_t *stream, int id, int sid) |
| 375 | { |