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

Function hb_stream_try_delete_ts_entry

libhb/stream.c:735–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735static int hb_stream_try_delete_ts_entry(hb_stream_t *stream, int indx)
736{
737 int ii;
738
739 if ( stream->ts.list[indx].pid < 0 )
740 return 1;
741
742 for ( ii = stream->ts.list[indx].pes_list; ii != -1;
743 ii = stream->pes.list[ii].next )
744 {
745 if ( stream->pes.list[ii].stream_id >= 0 )
746 return 0;
747 }
748 stream->ts.list[indx].pid = -stream->ts.list[indx].pid;
749 return 1;
750}
751
752static void hb_stream_delete_ps_entry(hb_stream_t *stream, int indx)
753{

Callers 1

prune_streamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected