As you will see, mpc_demux_fill() already checks if there is less than min_bytes in the buffer and refill only if there is less than that. And if there is less than min_bytes in the buffer, it will be fully refilled if the flag MPC_BUFFER_FULL is passed (which seems to be used only for sv7 ... maybe there is an improvement to do here).
|