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

Function hb_ts_stream_reset

libhb/stream.c:5214–5237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5212}
5213
5214void hb_ts_stream_reset(hb_stream_t *stream)
5215{
5216 int i;
5217
5218 for (i=0; i < stream->ts.count; i++)
5219 {
5220 if ( stream->ts.list[i].buf )
5221 stream->ts.list[i].buf->size = 0;
5222 stream->ts.list[i].skipbad = 1;
5223 stream->ts.list[i].continuity = -1;
5224 stream->ts.list[i].pes_info_valid = 0;
5225 }
5226
5227 stream->need_keyframe = 1;
5228
5229 stream->ts.found_pcr = 0;
5230 stream->ts.pcr = AV_NOPTS_VALUE;
5231 stream->ts.last_timestamp = AV_NOPTS_VALUE;
5232
5233 stream->frames = 0;
5234 stream->errors = 0;
5235 stream->last_error_frame = -10000;
5236 stream->last_error_count = 0;
5237}
5238
5239void hb_ps_stream_reset(hb_stream_t *stream)
5240{

Callers 4

hb_stream_seekFunction · 0.85
hb_bd_seekFunction · 0.85
hb_bd_seek_ptsFunction · 0.85
hb_bd_seek_chapterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected