dxa: make code independent of sizeof(AVFrame)