Fix crash encoding with macOS videotoolbox.
Fix crash encoding with macOS videotoolbox.

mltframework/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt