mss4: make code independent of sizeof(AVFrame)