first fixes to support Libav10 and FFMpeg 1.2.5