FFMpegWriter: correct update pixel format if codec have not prefered pixel format
fix #172