Minor bugfix to avoid crashes with YUV 4:2:0 content.