so.. patches mostly applicable to ffmpeg-4.4 while I slightly edited 'last frame' fix due to other ffmpeg changes<div><br></div><div>apply 'last frame' and '24-bit' for encoding truehd hopefully lossless</div><div>apply two mlpdec patches for more correct decoder flush/crc check</div><div><br></div><div>try to apply mlp.h and libavformat patches for timestamps in demuxer... </div><div><br></div><div>stop-returning-empty for mlpenc not tested. </div><div><br></div><div>after all this patching both ffmpeg and cin should work better with truehd streams (still require 'strict -2' in profile) </div><div><br></div><div>there were other fixes and code movements but i hope those patches can fix  real bugs and allow losless re-encoding between pcm and truehd (check crc's!) </div>