avcodec/libopenjpegenc: drop dependancy on sizeof(AVFrame)