MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / index_of_ps_stream

Function index_of_ps_stream

libhb/stream.c:374–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374static 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
400static kind_t ts_stream_kind( hb_stream_t * stream, int idx )
401{

Callers 2

hb_ps_stream_getVideoFunction · 0.85
hb_ps_stream_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected