| 372 | } |
| 373 | |
| 374 | static int index_of_ps_stream(hb_stream_t *stream, int id, int sid) |
| 375 | { |
| 376 | int i; |
| 377 | |
| 378 | for ( i = 0; i < stream->pes.count; ++i ) |
| 379 | { |
| 380 | if ( id == stream->pes.list[i].stream_id && |
| 381 | sid == stream->pes.list[i].stream_id_ext ) |
| 382 | { |
| 383 | return i; |
| 384 | } |
| 385 | } |
| 386 | // If there is no match on the stream_id_ext, try matching |
| 387 | // on only the stream_id. |
| 388 | for ( i = 0; i < stream->pes.count; ++i ) |
| 389 | { |
| 390 | if ( id == stream->pes.list[i].stream_id && |
| 391 | 0 == stream->pes.list[i].stream_id_ext ) |
| 392 | { |
| 393 | return i; |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | return -1; |
| 398 | } |
| 399 | |
| 400 | static kind_t ts_stream_kind( hb_stream_t * stream, int idx ) |
| 401 | { |
no outgoing calls
no test coverage detected