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

Function hb_stream_delete_ts_entry

libhb/stream.c:727–733  ·  view source on GitHub ↗

when the file was first opened we made entries for all the audio elementary * streams we found in it. Streams that were later found during the preview scan * now have an audio codec, type, rate, etc., associated with them. At the end * of the scan we delete all the audio entries that weren't found by the scan * or don't have a format we support. This routine deletes audio entry 'indx' * by se

Source from the content-addressed store, hash-verified

725 * move any of the entries since the index of the entry is used as the id
726 * of the media stream for HB. */
727static void hb_stream_delete_ts_entry(hb_stream_t *stream, int indx)
728{
729 if ( stream->ts.list[indx].pid > 0 )
730 {
731 stream->ts.list[indx].pid = -stream->ts.list[indx].pid;
732 }
733}
734
735static int hb_stream_try_delete_ts_entry(hb_stream_t *stream, int indx)
736{

Callers 2

prune_streamsFunction · 0.85
hb_ts_stream_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected