| 5212 | } |
| 5213 | |
| 5214 | void 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 | |
| 5239 | void hb_ps_stream_reset(hb_stream_t *stream) |
| 5240 | { |
no outgoing calls
no test coverage detected