| 337 | } |
| 338 | |
| 339 | static void MoveToInternalFifos( int tk, hb_mux_t *mux, hb_buffer_t * buf ) |
| 340 | { |
| 341 | // move all the buffers on the track's fifo to our internal |
| 342 | // fifo so that (a) we don't deadlock in the reader and |
| 343 | // (b) we can control how data from multiple tracks is |
| 344 | // interleaved in the output file. |
| 345 | mf_push( mux, tk, buf ); |
| 346 | if ( buf->s.start >= mux->pts ) |
| 347 | { |
| 348 | // buffer is past our next interleave point so |
| 349 | // note that this track is ready to be output. |
| 350 | hb_bitvec_set(mux->rdy, tk); |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | static void OutputTrackChunk( hb_mux_t *mux, int tk, hb_mux_object_t *m ) |
| 355 | { |
no test coverage detected